net/mlx5: Split eswitch mode check to different helper function
authorParav Pandit <parav@mellanox.com>
Sat, 14 Dec 2019 10:09:04 +0000 (04:09 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:19:21 +0000 (23:19 -0700)
commitae24432cbc2b2d7f5a8d636194422604b0b4c4f7
tree79683b9bd96ce8aa93d77af53e6f4cf4c28a28d5
parent98fed6eb9b17d4edb1d57b5f51c63b77686aaf1d
net/mlx5: Split eswitch mode check to different helper function

In order to check eswitch state under a lock, prepare code to split
capability check and eswitch state check into two helper functions.

Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c