net/mlx5: E-switch, Introduce and use eswitch support check helper
authorParav Pandit <parav@mellanox.com>
Fri, 19 Jun 2020 03:32:51 +0000 (03:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 22:29:19 +0000 (15:29 -0700)
commitbd93975353d534175c03a6bc8928a2443a7d8d34
tree96c96eab4c35bd80e7c43ab9793c87a013191be1
parentfa997825ebeca820f4001a9e6d285345d3a535ba
net/mlx5: E-switch, Introduce and use eswitch support check helper

Introduce an helper routine to get esw from a devlink device and use it
at eswitch callbacks and in subsequent patch.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c