summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/port.h
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2016-02-22 18:17:25 +0200
committerDavid S. Miller <davem@davemloft.net>2016-02-24 13:50:20 -0500
commit4f3961eeafe0aca8f6b0933899ef0d91f561352d (patch)
tree8f559201bcf3a51d73604f8737346c8ebb690edb /include/linux/mlx5/port.h
parentad909eb064219a64fd10e9c7d9f39a3042760025 (diff)
downloadtalos-op-linux-4f3961eeafe0aca8f6b0933899ef0d91f561352d.tar.gz
talos-op-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__ */
OpenPOWER on IntegriCloud