mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
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>
This commit is contained in:
parent
f31b6c649e
commit
7ad7b7023f
1 changed files with 1 additions and 0 deletions
|
|
@ -468,6 +468,7 @@ static void bnxt_vf_rep_netdev_init(struct bnxt *bp, struct bnxt_vf_rep *vf_rep,
|
|||
struct net_device *pf_dev = bp->dev;
|
||||
u16 max_mtu;
|
||||
|
||||
SET_NETDEV_DEV(dev, &bp->pdev->dev);
|
||||
dev->netdev_ops = &bnxt_vf_rep_netdev_ops;
|
||||
dev->ethtool_ops = &bnxt_vf_rep_ethtool_ops;
|
||||
/* Just inherit all the featues of the parent PF as the VF-R
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue