From: Simei Su Date: Mon, 14 Dec 2020 06:49:10 +0000 (+0800) Subject: net/iavf: support eCPRI flow patterns X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a14e297a1226bc9c8d5f0201f370f11aadecf9f7;p=dpdk.git net/iavf: support eCPRI flow patterns Add patterns support for eCPRI. Added patterns are as follows: eth_ecpri eth_ipv4_ecpri Signed-off-by: Simei Su Acked-by: Qi Zhang --- diff --git a/drivers/net/iavf/iavf_generic_flow.c b/drivers/net/iavf/iavf_generic_flow.c index 00e7f15c33..aabbcf34c2 100644 --- a/drivers/net/iavf/iavf_generic_flow.c +++ b/drivers/net/iavf/iavf_generic_flow.c @@ -783,6 +783,21 @@ enum rte_flow_item_type iavf_pattern_eth_ipv6_pfcp[] = { RTE_FLOW_ITEM_TYPE_END, }; +/* ECPRI */ +enum rte_flow_item_type iavf_pattern_eth_ecpri[] = { + RTE_FLOW_ITEM_TYPE_ETH, + RTE_FLOW_ITEM_TYPE_ECPRI, + RTE_FLOW_ITEM_TYPE_END, +}; + +enum rte_flow_item_type iavf_pattern_eth_ipv4_ecpri[] = { + RTE_FLOW_ITEM_TYPE_ETH, + RTE_FLOW_ITEM_TYPE_IPV4, + RTE_FLOW_ITEM_TYPE_UDP, + RTE_FLOW_ITEM_TYPE_ECPRI, + RTE_FLOW_ITEM_TYPE_END, +}; + typedef struct iavf_flow_engine * (*parse_engine_t)(struct iavf_adapter *ad, struct rte_flow *flow, struct iavf_parser_list *parser_list, diff --git a/drivers/net/iavf/iavf_generic_flow.h b/drivers/net/iavf/iavf_generic_flow.h index efc7f2200e..9e518bd14c 100644 --- a/drivers/net/iavf/iavf_generic_flow.h +++ b/drivers/net/iavf/iavf_generic_flow.h @@ -262,6 +262,9 @@ extern enum rte_flow_item_type iavf_pattern_eth_ipv6_l2tpv3[]; extern enum rte_flow_item_type iavf_pattern_eth_ipv4_pfcp[]; extern enum rte_flow_item_type iavf_pattern_eth_ipv6_pfcp[]; +/* ECPRI */ +extern enum rte_flow_item_type iavf_pattern_eth_ecpri[]; +extern enum rte_flow_item_type iavf_pattern_eth_ipv4_ecpri[]; extern const struct rte_flow_ops iavf_flow_ops;