]> 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)
commit1cf3c5fbc2fe34cce123e821fe67b6ed8fbae378
tree708182a94e4c3d35ce7b59256e94102af2c8d447
parent1b97f15d622ae0aa1e9cf95d3fbb2c4720b23cb7
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