[dpdk-dev] [PATCH 1/4] ethdev: fix integrity flow item
Thomas Monjalon
thomas at monjalon.net
Wed Apr 28 20:06:50 CEST 2021
28/04/2021 19:59, Gregory Etelson:
> Add integrity item definition to the rte_flow_desc_item array.
> The new entry allows RTE conv API to work with the new flow item.
What is RTE conv API?
> Add bitmasks to the integrity item value.
> The masks allow to query multiple integrity filters in a single
> compare operation.
[...]
> +#define RTE_FLOW_ITEM_INTEGRITY_PKT_OK (1ULL << 0)
> +#define RTE_FLOW_ITEM_INTEGRITY_L2_OK (1ULL << 1)
> +#define RTE_FLOW_ITEM_INTEGRITY_L3_OK (1ULL << 2)
> +#define RTE_FLOW_ITEM_INTEGRITY_L4_OK (1ULL << 3)
> +#define RTE_FLOW_ITEM_INTEGRITY_L2_CRC_OK (1ULL << 4)
> +#define RTE_FLOW_ITEM_INTEGRITY_IPV4_CSUM_OK (1ULL << 5)
> +#define RTE_FLOW_ITEM_INTEGRITY_L4_CSUM_OK (1ULL << 6)
> +#define RTE_FLOW_ITEM_INTEGRITY_L3_LEN_OK (1ULL << 7)
Please use RTE_BIT macro,
and add a reference to these bits in a doxygen comment
where appropriate, thanks.
More information about the dev
mailing list