diff options
author | Vladyslav Tarasiuk <[email protected]> | 2020-03-04 13:33:50 +0200 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2020-03-17 19:41:30 -0700 |
commit | 31e87b39ba9d47cf31f5a91dd3cc9680f5987d12 (patch) | |
tree | 409e400a143c1eada31e9b3ecd620742a668e937 /scripts/gcc-plugins/latent_entropy_plugin.c | |
parent | d0645b3780954b7133d9a908009d166ae686bd2a (diff) |
net/mlx5e: Fix devlink port register sequence
If udevd is configured to rename interfaces according to persistent
naming rules and if a network interface has phys_port_name in sysfs,
its contents will be appended to the interface name.
However, register_netdev creates device in sysfs and if
devlink_port_register is called after that, there is a timeframe in
which udevd may read an empty phys_port_name value. The consequence is
that the interface will lose this suffix and its name will not be
really persistent.
The solution is to register the port before registering a netdev.
Fixes: c6acd629eec7 ("net/mlx5e: Add support for devlink-port in non-representors mode")
Signed-off-by: Vladyslav Tarasiuk <[email protected]>
Reviewed-by: Maxim Mikityanskiy <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/latent_entropy_plugin.c')
0 files changed, 0 insertions, 0 deletions