[PATCH 3/3] app/testpmd: add a command to show VLAN filter IDs

Stephen Hemminger stephen at networkplumber.org
Fri Apr 18 20:42:46 CEST 2025


On Fri, 11 Apr 2025 16:10:05 +0800
Chaoyong He <chaoyong.he at corigine.com> wrote:

> +static void
> +rx_vft_dump_printf(int left, int right, int *c_count)
> +{
> +	if (left == right)
> +		*c_count += printf("%d,", left);
> +	else
> +		*c_count += printf("%d-%d,", left, right);
> +
> +	if (*c_count >= 120) {
> +		*c_count = 0;
> +		printf("\n");
> +	}
> +}
> +

Since VLAN id's are unsigned, should really not be using int.

If you are really going to have lines that long, must be a real
mess of a config. 

Once again, this is getting to be overkill for normal usage.


More information about the dev mailing list