[PATCH v5 3/5] net/iavf: support flow subscrption pattern

Zhang, Qi Z qi.z.zhang at intel.com
Wed Sep 7 07:27:35 CEST 2022



> -----Original Message-----
> From: Wang, Jie1X <jie1x.wang at intel.com>
> Sent: Wednesday, September 7, 2022 1:11 PM
> To: dev at dpdk.org
> Cc: Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>; Xing, Beilei
> <beilei.xing at intel.com>; Yang, SteveX <stevex.yang at intel.com>; Wang, Jie1X
> <jie1x.wang at intel.com>
> Subject: [PATCH v5 3/5] net/iavf: support flow subscrption pattern
> 
> Add flow subscription pattern support for AVF.
> 
> The supported patterns are listed below:
> eth/vlan/ipv4
> eth/ipv4(6)
> eth/ipv4(6)/udp
> eth/ipv4(6)/tcp
> 
> Signed-off-by: Jie Wang <jie1x.wang at intel.com>
> ---
> 
> +static int
> +iavf_fsub_check_action(const struct rte_flow_action *actions,
> +		       struct rte_flow_error *error)
> +{
> +	const struct rte_flow_action *action;
> +	enum rte_flow_action_type action_type;
> +	uint16_t actions_num = 0;
> +	bool vf_valid = false;
> +	bool queue_valid = false;
> +
> +	for (action = actions; action->type !=
> +				RTE_FLOW_ACTION_TYPE_END; action++) {
> +		action_type = action->type;
> +		switch (action_type) {
> +		case RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR:

Need to sync the document in iavf.ini

[rte_flow actions]
....
port_representor     = Y

will be fixed during code merge.



More information about the dev mailing list