[dpdk-dev] [PATCH v3 4/8] ethdev: add GTP items to support flow API

Adrien Mazarguil adrien.mazarguil at 6wind.com
Fri Sep 22 15:39:19 CEST 2017


On Sat, Sep 23, 2017 at 06:35:10AM +0800, Beilei Xing wrote:
> This patch adds GTP, GTPC and GTPU items for
> generic flow API, and also exposes item fields
> through the flow command.
> 
> Signed-off-by: Beilei Xing <beilei.xing at intel.com>
<snip>
> diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
> +static const enum index item_gtp[] = {
> +	ITEM_GTP_TEID,
> +	ITEM_NEXT,
> +	ZERO,
> +};
> +
> +static const enum index item_gtpc[] = {
> +	ITEM_GTP_TEID,
> +	ITEM_NEXT,
> +	ZERO,
> +};
> +
> +static const enum index item_gtpu[] = {
> +	ITEM_GTP_TEID,
> +	ITEM_NEXT,
> +	ZERO,
> +};
<snip>

Only item_gtp[] needs to be defined. GTPC and GTPU should use the same
array. Apart from that:

Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>

-- 
Adrien Mazarguil
6WIND


More information about the dev mailing list