summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAchiad Shochat <achiad@mellanox.com>2016-02-22 18:17:24 +0200
committerDavid S. Miller <davem@davemloft.net>2016-02-24 13:50:20 -0500
commitad909eb064219a64fd10e9c7d9f39a3042760025 (patch)
tree27a9a433f15d8b48771a2a8abad5378b3cac2c04 /include/linux
parentada68c31ba9c02d7aabdd87db979fe670b499d54 (diff)
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')
-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__ */