[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpXojFaYogRu76=jGr6cp74YcUyR_ZovRnSmKp9KaugBOw@mail.gmail.com>
Date: Mon, 8 Feb 2021 10:41:35 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: wenxu <wenxu@...oud.cn>
Cc: Jamal Hadi Salim <jhs@...atatu.com>, mleitner@...hat.com,
Jakub Kicinski <kuba@...nel.org>,
Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH net v4] net/sched: cls_flower: Reject invalid ct_state
flags rules
On Sat, Feb 6, 2021 at 9:26 PM <wenxu@...oud.cn> wrote:
> + if (state && !(state & TCA_FLOWER_KEY_CT_FLAGS_TRACKED)) {
> + NL_SET_ERR_MSG_ATTR(extack, tb,
> + "ct_state no trk, no other flag are set");
> + return -EINVAL;
> + }
> +
> + if (state & TCA_FLOWER_KEY_CT_FLAGS_NEW &&
> + state & TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED) {
> + NL_SET_ERR_MSG_ATTR(extack, tb,
> + "ct_state new and est are exclusive");
Please spell out the full words, "trk" and "est" are not good abbreviations.
Powered by blists - more mailing lists