From: Simon Horman <simon.horman@netronome.com>
To: Eli Cohen <eli@mellanox.com>
Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us,
davem@davemloft.net, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, jakub.kicinski@netronome.com,
dirk.vandermerwe@netronome.com, francois.theron@netronome.com,
quentin.monnet@netronome.com, john.hurley@netronome.com,
edwin.peer@netronome.com
Subject: Re: [PATCH net-next 2/2] net: Change TCA_ACT_* to TCA_ID_* to match that of TCA_ID_POLICE
Date: Fri, 8 Feb 2019 09:01:42 +0100 [thread overview]
Message-ID: <20190208080141.dlksz5dfkufj2sbm@netronome.com> (raw)
In-Reply-To: <20190207074549.29861-3-eli@mellanox.com>
On Thu, Feb 07, 2019 at 09:45:49AM +0200, Eli Cohen wrote:
> Modify the kernel users of the TCA_ACT_* macros to use TCA_ID_*. For
> example, use TCA_ID_GACT instead of TCA_ACT_GACT. This will align with
> TCA_ID_POLICE and also differentiates these identifier, used in struct
> tc_action_ops type field, from other macros starting with TCA_ACT_.
>
> To make things clearer, we name the enum defining the TCA_ID_*
> identifiers and also change the "type" field of struct tc_action to
> id.
>
> Signed-off-by: Eli Cohen <eli@mellanox.com>
> Acked-by: Jiri Pirko <jiri@mellanox.com>
...
> diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
> index 7ab55f97e7c4..51a0496f78ea 100644
> --- a/include/uapi/linux/pkt_cls.h
> +++ b/include/uapi/linux/pkt_cls.h
> @@ -85,7 +85,7 @@ enum {
> #define TCA_ACT_SAMPLE 26
>
> /* Action type identifiers*/
> -enum {
> +enum tca_id {
> TCA_ID_UNSPEC = 0,
> TCA_ID_POLICE = 1,
> TCA_ID_GACT = TCA_ACT_GACT,
This change updates the UAPI. It seems to me that it would not
break existing users. But I would like to ask if this has been
given due consideration.
...
next prev parent reply other threads:[~2019-02-08 8:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-07 7:45 [PATCH net-next 0/2] Change tc action identifiers to be more consistent Eli Cohen
2019-02-07 7:45 ` [PATCH net-next 1/2] net: Move all TC actions identifiers to one place Eli Cohen
2019-02-07 7:45 ` [PATCH net-next 2/2] net: Change TCA_ACT_* to TCA_ID_* to match that of TCA_ID_POLICE Eli Cohen
2019-02-07 18:01 ` David Miller
2019-02-10 8:19 ` Eli Cohen
2019-02-08 8:01 ` Simon Horman [this message]
2019-02-08 8:39 ` Jiri Pirko
2019-02-07 13:00 ` [PATCH net-next 0/2] Change tc action identifiers to be more consistent Jamal Hadi Salim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190208080141.dlksz5dfkufj2sbm@netronome.com \
--to=simon.horman@netronome.com \
--cc=davem@davemloft.net \
--cc=dirk.vandermerwe@netronome.com \
--cc=edwin.peer@netronome.com \
--cc=eli@mellanox.com \
--cc=francois.theron@netronome.com \
--cc=jakub.kicinski@netronome.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=john.hurley@netronome.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=quentin.monnet@netronome.com \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®