[dpdk-dev] [PATCH 03/20] common/mlx5: add MMO and regexp structs/opcodes
Slava Ovsiienko
viacheslavo at mellanox.com
Wed Jul 8 09:32:04 CEST 2020
Acked-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> -----Original Message-----
> From: Ori Kam <orika at mellanox.com>
> Sent: Sunday, July 5, 2020 12:24
> To: jerinj at marvell.com; xiang.w.wang at intel.com; Matan Azrad
> <matan at mellanox.com>; Slava Ovsiienko <viacheslavo at mellanox.com>;
> Shahaf Shuler <shahafs at mellanox.com>
> Cc: guyk at marvell.com; dev at dpdk.org; pbhagavatula at marvell.com;
> hemant.agrawal at nxp.com; Opher Reviv <opher at mellanox.com>; Alex
> Rosenbaum <alexr at mellanox.com>; dovrat at marvell.com;
> pkapoor at marvell.com; nipun.gupta at nxp.com;
> bruce.richardson at intel.com; yang.a.hong at intel.com;
> harry.chang at intel.com; gu.jian1 at zte.com.cn;
> shanjiangh at chinatelecom.cn; zhangy.yun at chinatelecom.cn;
> lixingfu at huachentel.com; wushuai at inspur.com; yuyingxia at yxlink.com;
> fanchenggang at sunyainfo.com; davidfgao at tencent.com;
> liuzhong1 at chinaunicom.cn; zhaoyong11 at huawei.com; oc at yunify.com;
> jim at netgate.com; hongjun.ni at intel.com; deri at ntop.org;
> fc at napatech.com; arthur.su at lionic.com; Thomas Monjalon
> <thomas at monjalon.net>; Ori Kam <orika at mellanox.com>; Raslan
> Darawsheh <rasland at mellanox.com>; Yuval Avnery
> <yuvalav at mellanox.com>
> Subject: [PATCH 03/20] common/mlx5: add MMO and regexp
> structs/opcodes
>
> From: Yuval Avnery <yuvalav at mellanox.com>
>
> Added General purpose PRM MMO structs, and regex specific structs.
>
> Signed-off-by: Yuval Avnery <yuvalav at mellanox.com>
> Signed-off-by: Ori Kam <orika at mellanox.com>
> ---
> drivers/common/mlx5/mlx5_prm.h | 40
> ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/drivers/common/mlx5/mlx5_prm.h
> b/drivers/common/mlx5/mlx5_prm.h index c63795f..c2b9a20 100644
> --- a/drivers/common/mlx5/mlx5_prm.h
> +++ b/drivers/common/mlx5/mlx5_prm.h
> @@ -373,6 +373,42 @@ struct mlx5_cqe {
> uint8_t op_own;
> };
>
> +/* MMO metadata segment */
> +
> +#define MLX5_OPCODE_MMO 0x2f
> +#define MLX5_OPC_MOD_MMO_REGEX 0x4
> +
> +struct mlx5_wqe_metadata_seg {
> + uint32_t mmo_control_31_0; /* mmo_control_63_32 is in
> ctrl_seg.imm */
> + uint32_t lkey;
> + uint64_t addr;
> +};
> +
> +struct mlx5_ifc_regexp_mmo_control_bits {
> + uint8_t reserved_at_31[0x2];
> + uint8_t le[0x1];
> + uint8_t reserved_at_28[0x1];
> + uint8_t subset_id_0[0xc];
> + uint8_t reserved_at_16[0x4];
> + uint8_t subset_id_1[0xc];
> + uint8_t ctrl[0x4];
> + uint8_t subset_id_2[0xc];
> + uint8_t reserved_at_16_1[0x4];
> + uint8_t subset_id_3[0xc];
> +};
> +
> +struct mlx5_ifc_regexp_metadata_bits {
> + uint8_t rof_version[0x10];
> + uint8_t latency_count[0x10];
> + uint8_t instruction_count[0x10];
> + uint8_t primary_thread_count[0x10];
> + uint8_t match_count[0x8];
> + uint8_t detected_match_count[0x8];
> + uint8_t status[0x10];
> + uint8_t job_id[0x20];
> + uint8_t reserved[0x80];
> +};
> +
> /* Adding direct verbs to data-path. */
>
> /* CQ sequence number mask. */
> @@ -759,6 +795,10 @@ enum {
> MLX5_CMD_OP_CREATE_GENERAL_OBJECT = 0xa00,
> MLX5_CMD_OP_MODIFY_GENERAL_OBJECT = 0xa01,
> MLX5_CMD_OP_QUERY_GENERAL_OBJECT = 0xa02,
> + MLX5_CMD_SET_REGEX_PARAM = 0xb04,
> + MLX5_CMD_QUERY_REGEX_PARAMS = 0xb05,
> + MLX5_CMD_SET_REGEX_REGISTERS = 0xb06,
> + MLX5_CMD_QUERY_REGEX_REGISTERS = 0xb07,
> };
>
> enum {
> --
> 1.8.3.1
More information about the dev
mailing list