[Cake] [PATCH iproute2-next v10] Add support for CAKE qdisc

Stephen Hemminger stephen at networkplumber.org
Mon Jul 16 13:06:46 EDT 2018


On Mon, 16 Jul 2018 18:39:26 +0200
Toke Høiland-Jørgensen <toke at toke.dk> wrote:

> +#define PRINT_TSTAT(name, attr, fmts, val)	do {		\
> +			if (GET_TSTAT(0, attr)) {		\
> +				fprintf(f, name);		\
> +				for (i = 0; i < num_tins; i++)	\
> +					fprintf(f, " %12" fmts,	val);	\
> +				fprintf(f, "\n");			\
> +			}						\
> +		} while (0)

Couldn't this be a function?


More information about the Cake mailing list