X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fmlx5%2Fmlx5_common_mp.h;h=6829141fc7990092b37f28c8da983e4841c50f57;hb=7e7af4e99a9d34e3d8510fe9c57b683ea762cfcc;hp=05466fdc905229b97e552d85271511b093f42d85;hpb=64c563f8b1aa59d12b83884d815e1f8486099bde;p=dpdk.git diff --git a/drivers/common/mlx5/mlx5_common_mp.h b/drivers/common/mlx5/mlx5_common_mp.h index 05466fdc90..6829141fc7 100644 --- a/drivers/common/mlx5/mlx5_common_mp.h +++ b/drivers/common/mlx5/mlx5_common_mp.h @@ -6,16 +6,7 @@ #ifndef RTE_PMD_MLX5_COMMON_MP_H_ #define RTE_PMD_MLX5_COMMON_MP_H_ -/* Verbs header. */ -/* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ -#ifdef PEDANTIC -#pragma GCC diagnostic ignored "-Wpedantic" -#endif -#include -#ifdef PEDANTIC -#pragma GCC diagnostic error "-Wpedantic" -#endif - +#include #include #include @@ -26,6 +17,10 @@ enum mlx5_mp_req_type { MLX5_MP_REQ_START_RXTX, MLX5_MP_REQ_STOP_RXTX, MLX5_MP_REQ_QUEUE_STATE_MODIFY, + MLX5_MP_REQ_QUEUE_RX_STOP, + MLX5_MP_REQ_QUEUE_RX_START, + MLX5_MP_REQ_QUEUE_TX_STOP, + MLX5_MP_REQ_QUEUE_TX_START, }; struct mlx5_mp_arg_queue_state_modify { @@ -34,6 +29,10 @@ struct mlx5_mp_arg_queue_state_modify { enum ibv_wq_state state; /* WQ requested state. */ }; +struct mlx5_mp_arg_queue_id { + uint16_t queue_id; /* DPDK queue ID. */ +}; + /* Pameters for IPC. */ struct mlx5_mp_param { enum mlx5_mp_req_type type; @@ -44,6 +43,8 @@ struct mlx5_mp_param { uintptr_t addr; /* MLX5_MP_REQ_CREATE_MR */ struct mlx5_mp_arg_queue_state_modify state_modify; /* MLX5_MP_REQ_QUEUE_STATE_MODIFY */ + struct mlx5_mp_arg_queue_id queue_id; + /* MLX5_MP_REQ_QUEUE_RX/TX_START/STOP */ } args; };