OSDN Git Service

mlx4: Get rid of the mlx4_interface.activate callback
authorPetr Pavlu <petr.pavlu@suse.com>
Mon, 21 Aug 2023 13:12:19 +0000 (15:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Aug 2023 07:25:27 +0000 (08:25 +0100)
commit13f857111cb23f2a8dbcd0271c3ff1824913d980
tree605a7ee8b11bf07b68a748fcb696fdb3129b2b94
parent73d68002a02efd370dba6b8fc570427326e36d1a
mlx4: Get rid of the mlx4_interface.activate callback

The mlx4_interface.activate callback was introduced in commit
79857cd31fe7 ("net/mlx4: Postpone the registration of net_device"). It
dealt with a situation when a netdev notifier received a NETDEV_REGISTER
event for a new net_device created by mlx4_en but the same device was
not yet visible to mlx4_get_protocol_dev(). The callback can be removed
now that mlx4_get_protocol_dev() is gone.

Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Tested-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_main.c
drivers/net/ethernet/mellanox/mlx4/intf.c
include/linux/mlx4/driver.h