summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_prm.h
diff options
context:
space:
mode:
authorOri Kam <orika@mellanox.com>2019-10-30 23:53:18 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-08 23:15:04 +0100
commit6a338ad4f7fe7837e55f4d33b78f255387320adb (patch)
tree4f8d9558c239ebee5b958cbec46ea133fe9d9be4 /drivers/net/mlx5/mlx5_prm.h
parentb6b3bf86bd1a300c808928237a58b79db85932f7 (diff)
downloaddpdk-6a338ad4f7fe7837e55f4d33b78f255387320adb.zip
dpdk-6a338ad4f7fe7837e55f4d33b78f255387320adb.tar.gz
dpdk-6a338ad4f7fe7837e55f4d33b78f255387320adb.tar.xz
net/mlx5: add hairpin binding function
When starting the port, in addition to creating the queues we need to bind the hairpin queues. Signed-off-by: Ori Kam <orika@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_prm.h')
-rw-r--r--drivers/net/mlx5/mlx5_prm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_prm.h b/drivers/net/mlx5/mlx5_prm.h
index c687cfb..e4b19f8 100644
--- a/drivers/net/mlx5/mlx5_prm.h
+++ b/drivers/net/mlx5/mlx5_prm.h
@@ -1628,6 +1628,12 @@ struct mlx5_ifc_create_rqt_in_bits {
#pragma GCC diagnostic error "-Wpedantic"
#endif
+enum {
+ MLX5_SQC_STATE_RST = 0x0,
+ MLX5_SQC_STATE_RDY = 0x1,
+ MLX5_SQC_STATE_ERR = 0x3,
+};
+
struct mlx5_ifc_sqc_bits {
u8 rlky[0x1];
u8 cd_master[0x1];