diff options
author | Petr Pavlu <petr.pavlu@suse.com> | 2023-08-21 15:12:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-23 08:25:27 +0100 |
commit | 13f857111cb23f2a8dbcd0271c3ff1824913d980 (patch) | |
tree | 605a7ee8b11bf07b68a748fcb696fdb3129b2b94 /include/linux/mlx4/driver.h | |
parent | 73d68002a02efd370dba6b8fc570427326e36d1a (diff) | |
download | linux-13f857111cb23f2a8dbcd0271c3ff1824913d980.tar.gz linux-13f857111cb23f2a8dbcd0271c3ff1824913d980.tar.bz2 linux-13f857111cb23f2a8dbcd0271c3ff1824913d980.zip |
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>
Diffstat (limited to 'include/linux/mlx4/driver.h')
-rw-r--r-- | include/linux/mlx4/driver.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mlx4/driver.h b/include/linux/mlx4/driver.h index 228da8ed7e75..0f8c9ba4c574 100644 --- a/include/linux/mlx4/driver.h +++ b/include/linux/mlx4/driver.h @@ -58,7 +58,6 @@ enum { struct mlx4_interface { void * (*add) (struct mlx4_dev *dev); void (*remove)(struct mlx4_dev *dev, void *context); - void (*activate)(struct mlx4_dev *dev, void *context); struct list_head list; enum mlx4_protocol protocol; int flags; |