[PATCH] net/cpfl: fix VF ID calculation for vCPF

Bruce Richardson bruce.richardson at intel.com
Thu Sep 10 09:48:01 CEST 2026


On Fri, Aug 28, 2026 at 02:52:16AM +0530, Atul Patel wrote:
> The VF ID was incorrectly set to only the PCI function number,
> which fails when VFs span multiple PCI devices (device IDs > 0).
> Calculate the VF ID as (device_id * 8) + function to correctly
> map VFs across devices.
> 
> Fixes: f1ab44fb0ebf ("net/cpfl: add vCPF port info")
> 
> Signed-off-by: Praveen Shetty <praveen.shetty at intel.com>
> Signed-off-by: Atul Patel <atul.patel at intel.com>
> Signed-off-by: Dhananjay Shukla <dhananjay.shukla at intel.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list