[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160309131214.GB27306@orbyte.nwl.cc>
Date: Wed, 9 Mar 2016 14:12:14 +0100
From: Phil Sutter <phil@....cc>
To: Jamal Hadi Salim <jhs@...atatu.com>
Cc: shemming@...cade.com, netdev@...r.kernel.org
Subject: Re: [net-next PATCH iproute2 v2 1/1] tc: introduce IFE action
On Wed, Mar 09, 2016 at 07:04:36AM -0500, Jamal Hadi Salim wrote:
> +static void ife_explain(void)
> +{
> + fprintf(stderr,
> + "Usage:... ife {decode|encode} {ALLOW|USE} [dst DMAC] [src SMAC] [type TYPE] [CONTROL] [index INDEX]\n");
I'm just nitpicking here, but this syntax implies that ALLOW and USE are
mandatory and mutually exclusive. Looking at the code they're neither
(although specifying both might not make sense). OTOH you could probably
'use mark' and 'allow prio'. So I'd suggest '[ALLOW] [USE]' instead.
> + fprintf(stderr,
> + "\tALLOW := Encode direction. Allows encoding specified metadata\n"
> + "\t\t e.g \"allow mark\"\n"
> + "\tUSE := Encode direction. Enforce Static encoding of specified metadata\n"
> + "\t\t e.g \"use mark 0x12\"\n"
I'm missing a list of what actual keywords can be given, but after all
this is just a help text and a man page will provide much more detail
anyway (which you are about to submit too, are you? :).
Apart from that:
Acked-by: Phil Sutter <phil@....cc>
Powered by blists - more mailing lists