mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-13 09:15:02 +08:00
ice: link representors to PCI device
Link port representors to parent PCI device to benefit from systemd defined naming scheme. Example from ip tool: - without linking: eth0 ... - with linking: eth0 ... altname enp24s0f0npf0vf0 The port representor name is being shown in altname, because the name is longer than IFNAMSIZ (16) limit. Altname can be used in ip tool. Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
95730d6570
commit
6384b76959
@ -338,6 +338,7 @@ static int ice_repr_add(struct ice_vf *vf)
|
||||
repr->netdev->min_mtu = ETH_MIN_MTU;
|
||||
repr->netdev->max_mtu = ICE_MAX_MTU;
|
||||
|
||||
SET_NETDEV_DEV(repr->netdev, ice_pf_to_dev(vf->pf));
|
||||
err = ice_repr_reg_netdev(repr->netdev);
|
||||
if (err)
|
||||
goto err_netdev;
|
||||
|
Loading…
Reference in New Issue
Block a user