]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3180ecb8ab266f8a8343c8b1c2b72e17cb800290
tree79683b9bd96ce8aa93d77af53e6f4cf4c28a28d5
parent8cf858b302da4a4cb0cd383d1bc8cf644b881307
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