[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpW26pfWE-UyGQ6B=auhOw+Hk-ON4sck6hz0Wx48JMdYxQ@mail.gmail.com>
Date: Wed, 30 Aug 2017 16:15:03 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: Linux Kernel Network Developers <netdev@...r.kernel.org>,
Jamal Hadi Salim <jhs@...atatu.com>
Subject: Re: [Patch net-next] net_sched: add reverse binding for tc class
On Wed, Aug 30, 2017 at 3:45 PM, Daniel Borkmann <daniel@...earbox.net> wrote:
> On 08/31/2017 12:22 AM, Daniel Borkmann wrote:
>>
>> The prog->res.classid is the default one, but can be overridden
>> later depending on the specified program. cls_bpf_classify() does
>> after prog return (filter_res holds return code):
>>
>> [...]
>> if (filter_res == 0)
>> continue;
>> if (filter_res != -1) {
>> res->class = 0;
>> res->classid = filter_res;
>> } else {
>> *res = prog->res;
>> }
>> [...]
>>
>> Meaning in case of a match (-1), we use the default bound one,
>> but prog may as well return an alternative found classid if it
>> wants to. So both versions are possible.
>
>
> But even for that case your patch looks fine to me actually, since
> for dynamic classid we set class to 0. No objections from my side
> then.
Sounds good. Then I will leave it as it is.
Thanks for explanation.
Powered by blists - more mailing lists