aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorRoi Dayan <roid@mellanox.com>2016-11-22 16:09:58 -0500
committerDavid S. Miller <davem@davemloft.net>2016-11-24 16:01:14 -0500
commit34e4e99078667d30f71a50c1e5181e4270e9d8bb (patch)
tree012c06540c013757e9d3612f6ff3bfb48bc31dd4 /include/linux/mlx5
parent59bfde01fab0c4550778cd53e8d266f1dfddf7b7 (diff)
net/mlx5: Enable to query min inline for a specific vport
Also move the inline capablities enum to a shared header vport.h Signed-off-by: Roi Dayan <roid@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/vport.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h
index 451b0bde9083..ec35157ea725 100644
--- a/include/linux/mlx5/vport.h
+++ b/include/linux/mlx5/vport.h
@@ -36,6 +36,12 @@
36#include <linux/mlx5/driver.h> 36#include <linux/mlx5/driver.h>
37#include <linux/mlx5/device.h> 37#include <linux/mlx5/device.h>
38 38
39enum {
40 MLX5_CAP_INLINE_MODE_L2,
41 MLX5_CAP_INLINE_MODE_VPORT_CONTEXT,
42 MLX5_CAP_INLINE_MODE_NOT_REQUIRED,
43};
44
39u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport); 45u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport);
40u8 mlx5_query_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, 46u8 mlx5_query_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod,
41 u16 vport); 47 u16 vport);
@@ -43,8 +49,8 @@ int mlx5_modify_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod,
43 u16 vport, u8 state); 49 u16 vport, u8 state);
44int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, 50int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev,
45 u16 vport, u8 *addr); 51 u16 vport, u8 *addr);
46void mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev, 52int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev,
47 u8 *min_inline); 53 u16 vport, u8 *min_inline);
48int mlx5_modify_nic_vport_min_inline(struct mlx5_core_dev *mdev, 54int mlx5_modify_nic_vport_min_inline(struct mlx5_core_dev *mdev,
49 u16 vport, u8 min_inline); 55 u16 vport, u8 min_inline);
50int mlx5_modify_nic_vport_mac_address(struct mlx5_core_dev *dev, 56int mlx5_modify_nic_vport_mac_address(struct mlx5_core_dev *dev,