[PATCH v3 1/1] app/testpmd: support different input color method

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Wed Jun 8 14:06:33 CEST 2022


On 6/3/22 16:06, skori at marvell.com wrote:
> From: Sunil Kumar Kori <skori at marvell.com>
> 
> To enable input coloring, based on VLAN or DSCP, patch adds
> command line interface to configure the following:
> 
>   - configuring input coloring using VLAN or DSCP while creating
>     meter i.e. during rte_mtr_create()
> 
>   - Update VLAN input coloring table at runtime.
> 
>   - configures protocol priorities.
> 
>   - retrieve protocol and priority information
> 
> Depends-on: patch-22751 ("ethdev: mtr: support protocol based input color selection")
> 
> Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>

[snip]

> +		if (strcmp(token, "G") == 0 || strcmp(token, "g") == 0)

strcasecmp() will help to make it a bit simpler.
Here and in many similar cases below.




More information about the dev mailing list