summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/port.h
diff options
context:
space:
mode:
authorSaeed Mahameed2016-02-22 17:17:25 +0100
committerDavid S. Miller2016-02-24 19:50:20 +0100
commit4f3961eeafe0aca8f6b0933899ef0d91f561352d (patch)
tree8f559201bcf3a51d73604f8737346c8ebb690edb /include/linux/mlx5/port.h
parentnet/mlx5: Introduce physical port PFC access functions (diff)
downloadkernel-qcow2-linux-4f3961eeafe0aca8f6b0933899ef0d91f561352d.tar.gz
kernel-qcow2-linux-4f3961eeafe0aca8f6b0933899ef0d91f561352d.tar.xz
kernel-qcow2-linux-4f3961eeafe0aca8f6b0933899ef0d91f561352d.zip
net/mlx5: Introduce physical port TC/prio access functions
Add access functions to set and query a physical port TC groups and prio parameters. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/port.h')
-rw-r--r--include/linux/mlx5/port.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mlx5/port.h b/include/linux/mlx5/port.h
index 4b3644caa936..0c67e699d017 100644
--- a/include/linux/mlx5/port.h
+++ b/include/linux/mlx5/port.h
@@ -70,4 +70,10 @@ int mlx5_set_port_pfc(struct mlx5_core_dev *dev, u8 pfc_en_tx, u8 pfc_en_rx);
int mlx5_query_port_pfc(struct mlx5_core_dev *dev, u8 *pfc_en_tx,
u8 *pfc_en_rx);
+int mlx5_max_tc(struct mlx5_core_dev *mdev);
+
+int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc);
+int mlx5_set_port_tc_group(struct mlx5_core_dev *mdev, u8 *tc_group);
+int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw);
+
#endif /* __MLX5_PORT_H__ */