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)
commit706b35834820715d122a984eba2369cae7bf3abd
tree708182a94e4c3d35ce7b59256e94102af2c8d447
parentaae4e7a8bc44722fe70d58920a36916b1043195e
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