Skip to content

Commit 7ad7b70

Browse files
ivecerakuba-moo
authored andcommitted
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>
1 parent f31b6c6 commit 7ad7b70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ static void bnxt_vf_rep_netdev_init(struct bnxt *bp, struct bnxt_vf_rep *vf_rep,
468468
struct net_device *pf_dev = bp->dev;
469469
u16 max_mtu;
470470

471+
SET_NETDEV_DEV(dev, &bp->pdev->dev);
471472
dev->netdev_ops = &bnxt_vf_rep_netdev_ops;
472473
dev->ethtool_ops = &bnxt_vf_rep_ethtool_ops;
473474
/* Just inherit all the featues of the parent PF as the VF-R

0 commit comments

Comments
 (0)