net/mlx5: Introduce a helper API to check VF vport
authorParav Pandit <parav@mellanox.com>
Tue, 25 Jun 2019 17:47:56 +0000 (17:47 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Jun 2019 19:01:28 +0000 (12:01 -0700)
commit91d6291c4e544408e90e606bbaace88923d84167
tree0693d86b3171a1df3c8de43edaeb79ee07ef8e3e
parent84b0d6a7a11ec976da347d50de9d5a556743de16
net/mlx5: Introduce a helper API to check VF vport

Introduce a helper API mlx5_eswitch_is_vf_vport() to check
if a given vport_num belongs to VF or not.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Jianbo Liu <jianbol@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c