[dpdk-stable] [PATCH] app/testpmd: fix missing GENEVE item in helper func

Ori Kam orika at mellanox.com
Thu Jan 9 07:31:08 CET 2020



> -----Original Message-----
> From: Dekel Peled <dekelp at mellanox.com>
> Sent: Wednesday, January 8, 2020 5:07 PM
> To: Adrien Mazarguil <adrien.mazarguil at 6wind.com>;
> wenzhuo.lu at intel.com; jingjing.wu at intel.com;
> bernard.iremonger at intel.com
> Cc: Ori Kam <orika at mellanox.com>; dev at dpdk.org; Roman Zhukov
> <roman.zhukov at oktetlabs.ru>; Andrew Rybchenko
> <arybchenko at solarflare.com>; stable at dpdk.org
> Subject: [PATCH] app/testpmd: fix missing GENEVE item in helper func
> 
> Previous patch added support of GENEVE pattern item in flow rule.
> Function flow_item_default_mask() was not updated, so using it with
> GENEVE item returns null.
> Using testpmd command "set raw_decap" or "set raw_encap" with
> GENEVE item, without specifying any parameters, results in
> segmentation fault.
> 
> This patch updates function flow_item_default_mask(),
> adding case to handle GENEVE item.
> 
> Fixes: 0f4203fe9d18 ("app/testpmd: support GENEVE pattern item in flow
> rules")
> Cc: Roman Zhukov <roman.zhukov at oktetlabs.ru>
> Cc: Andrew Rybchenko <arybchenko at solarflare.com>
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dekel Peled <dekelp at mellanox.com>
> ---


Acked-by: Ori Kam <orika at mellanox.com>
Thanks,
Ori

>  app/test-pmd/cmdline_flow.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
> index 99dade7..3cf05b5 100644
> --- a/app/test-pmd/cmdline_flow.c
> +++ b/app/test-pmd/cmdline_flow.c
> @@ -6236,6 +6236,9 @@ static int comp_set_raw_index(struct context *,
> const struct token *,
>  	case RTE_FLOW_ITEM_TYPE_GTP_PSC:
>  		mask = &rte_flow_item_gtp_psc_mask;
>  		break;
> +	case RTE_FLOW_ITEM_TYPE_GENEVE:
> +		mask = &rte_flow_item_geneve_mask;
> +		break;
>  	case RTE_FLOW_ITEM_TYPE_PPPOE_PROTO_ID:
>  		mask = &rte_flow_item_pppoe_proto_id_mask;
>  	default:
> --
> 1.8.3.1



More information about the stable mailing list