Skip to content

Commit e67a0bc

Browse files
jjagielskanguy11
authored andcommitted
ixgbe: prevent from unwanted interface name changes
Users of the ixgbe driver report that after adding devlink support by the commit a028523 ("ixgbe: add initial devlink support") their configs got broken due to unwanted changes of interface names. It's caused by automatic phys_port_name generation during devlink port initialization flow. To prevent from that set no_phys_port_name flag for ixgbe devlink ports. Reported-by: David Howells <[email protected]> Closes: https://lore.kernel.org/netdev/[email protected]/ Reported-by: David Kaplan <[email protected]> Closes: https://lore.kernel.org/netdev/LV3PR12MB92658474624CCF60220157199470A@LV3PR12MB9265.namprd12.prod.outlook.com/ Fixes: a028523 ("ixgbe: add initial devlink support") Signed-off-by: Jedrzej Jagielski <[email protected]> Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent c5ec7f4 commit e67a0bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/ixgbe/devlink/devlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ int ixgbe_devlink_register_port(struct ixgbe_adapter *adapter)
543543

544544
attrs.flavour = DEVLINK_PORT_FLAVOUR_PHYSICAL;
545545
attrs.phys.port_number = adapter->hw.bus.func;
546+
attrs.no_phys_port_name = 1;
546547
ixgbe_devlink_set_switch_id(adapter, &attrs.switch_id);
547548

548549
devlink_port_attrs_set(devlink_port, &attrs);

0 commit comments

Comments
 (0)