net/mlx5: E-Switch, Return raw output for query esw functions
authorBodong Wang <bodong@mellanox.com>
Mon, 10 Jun 2019 23:38:18 +0000 (23:38 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Jun 2019 17:59:48 +0000 (10:59 -0700)
commit10ee82cedb62dd716c44ba7a2c458688638873ab
tree0e87f8d81a08523ebf32a8f24ed6c4ff15f99826
parentac35dcd6e4bdfadc90d6566ccf9fdc3b8f5e1b23
net/mlx5: E-Switch, Return raw output for query esw functions

Current function only returns host num of VFs, later patch requires
other params such as host maximum num of VFs.

Return the raw output so that caller can extract info as needed.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
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