On Wed, Jul 01, 2026 at 03:59:48PM +0530, Dhananjay Shukla wrote: > Add support for MMG device initialization in the CPFL PMD by > replacing direct device_id comparisons against CPFL_DEV_ID_MEV and > IXD_DEV_ID_VCPF with the idpf_is_vf_device() helper. This > centralizes VF/PF detection logic in the control path open and makes > the code handle MMG and future device IDs without requiring changes > at every call site. > > Additionally: > - Export idpf_is_vf_device() as an internal symbol so it can be > called from the CPFL driver. > - Skip VIRTCHNL2_OP_GET_STATS in cpfl_dev_stats_reset() for VF > devices which do not support this virtchannel operation. > - Skip idpf_vc_rss_hash_set() in idpf_vport_rss_config() for VF > devices which do not support setting RSS hash via virtchannel. > > Signed-off-by: Dhananjay Shukla <[email protected]> > --- Acked-by: Bruce Richardson <[email protected]>
Applied to next-net-intel with some rewording. For example, although it touches code in idpf driver, the patch is addressing limitations in cpfl, so I've retitled it as "net/cpfl: make device checks more generic". (Yes, check-git-log wants net/intel as prefix, but net/cpfl is more accurate so ignore the tool's suggestion) Thanks, /Bruce

