]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Rearrange netdevice ops structures
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 6 Jun 2017 14:46:49 +0000 (17:46 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 7 Aug 2017 07:47:06 +0000 (10:47 +0300)
commit37b5b29da7774e56fe83d6855cd56381f8cf70e9
tree708182a94e4c3d35ce7b59256e94102af2c8d447
parent7613cd8da5a8c547eec267568182d04d895b6284
net/mlx5e: Rearrange netdevice ops structures

Since we are going to allow building the driver without eswitch support,
it would be possible to compile out the sriov netdevice ops struct such
that the basic ops instance will be used for non VF devices too.

Add missing udp tunnel ndos into mlx5e_netdev_ops_basic.

While here, rearrange some ndos in the sriov ops struct and put
vf/eswitch related ndos towards the end of it.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c