Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bnxt_en: Link representors to PCI device

Link VF representors to parent PCI device to benefit from
systemd defined naming scheme.

Without this change the representor is visible as ethN.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20230620144855.288443-1-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Ivan Vecera and committed by
Jakub Kicinski
7ad7b702 f31b6c64

+1
+1
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
··· 468 468 struct net_device *pf_dev = bp->dev; 469 469 u16 max_mtu; 470 470 471 + SET_NETDEV_DEV(dev, &bp->pdev->dev); 471 472 dev->netdev_ops = &bnxt_vf_rep_netdev_ops; 472 473 dev->ethtool_ops = &bnxt_vf_rep_ethtool_ops; 473 474 /* Just inherit all the featues of the parent PF as the VF-R