summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/port.h
diff options
context:
space:
mode:
authorAchiad Shochat2016-02-22 17:17:24 +0100
committerDavid S. Miller2016-02-24 19:50:20 +0100
commitad909eb064219a64fd10e9c7d9f39a3042760025 (patch)
tree27a9a433f15d8b48771a2a8abad5378b3cac2c04 /include/linux/mlx5/port.h
parentnet/mlx5: Introduce a new header file for physical port functions (diff)
downloadkernel-qcow2-linux-ad909eb064219a64fd10e9c7d9f39a3042760025.tar.gz
kernel-qcow2-linux-ad909eb064219a64fd10e9c7d9f39a3042760025.tar.xz
kernel-qcow2-linux-ad909eb064219a64fd10e9c7d9f39a3042760025.zip
net/mlx5: Introduce physical port PFC access functions
Add access functions to set and query a physical port PFC (Priority Flow Control) parameters. Signed-off-by: Achiad Shochat <achiad@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/port.h')
-rw-r--r--include/linux/mlx5/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx5/port.h b/include/linux/mlx5/port.h
index 7accd4a65da5..4b3644caa936 100644
--- a/include/linux/mlx5/port.h
+++ b/include/linux/mlx5/port.h
@@ -66,4 +66,8 @@ int mlx5_set_port_pause(struct mlx5_core_dev *dev, u32 rx_pause, u32 tx_pause);
int mlx5_query_port_pause(struct mlx5_core_dev *dev,
u32 *rx_pause, u32 *tx_pause);
+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);
+
#endif /* __MLX5_PORT_H__ */