From: Jamal Hadi Salim <jhs@mojatatu.com>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Linux Kernel Network Developers <netdev@vger.kernel.org>
Subject: Re: [Patch net-next v2 2/2] net_sched: add network namespace support for tc actions
Date: Wed, 24 Feb 2016 08:19:23 -0500 [thread overview]
Message-ID: <56CDADDB.5070003@mojatatu.com> (raw)
In-Reply-To: <CAM_iQpVVe28XUkSfR1OhwMq6mgJVQ_zcPJn+xmLpb_YDy0wsDg@mail.gmail.com>
On 16-02-23 05:23 PM, Cong Wang wrote:
> On Tue, Feb 23, 2016 at 5:14 AM, Jamal Hadi Salim <jhs@mojatatu.com> wrote:
>> It doesnt seem neccessary to have hinfo in tc_action. Quick scan:
>> __tcf_hash_release() seems to be the only other place that uses it.
>> And the callers to that appear capable of passing the struct
>> net or tn which eventually propagates up...
>
> The tcf_action_destroy() callchain still can't find out hinfo yet.
>
Did you mean something else or am i missing the obvious?
I am looking at the call sites for tcf_action_destroy():
-tc_dump_tfilter() has access to *net
-tcf_exts_change() - one level lower it has access to *net; i think you
added this to your patch too.
-tcf_action_init() has *net.
> I know this is one of the ugly parts, this is why I mentioned it
> in the changelog that we should refactor it. Do you mind if I
> refactor this later?
>
I didnt understand the problem.
>> That also seemed unneeded. You could have derived hinfo
>> from tn.
>
> This is a pure taste of the API, I want to hide the hinfo as much as
> I can and expose tn to callers.
>
I dont know how i missed that;->
>>
>> Otherwise looks reasonable. I was hoping we could get rid of the per
>> action pernet ops but that could come later.
>>
>
> That is hard (if not impossible), because we have to allocate the pernet
> ops on heap, which seems not doable.
>
We can worry later. I thought there was a way to do it with compilation
into namespaces.
cheers,
jamal
next prev parent reply other threads:[~2016-02-24 13:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-22 23:57 [Patch net-next v2 0/2] net_sched: add network namespace support for tc actions Cong Wang
2016-02-22 23:57 ` [Patch net-next v2 1/2] net_sched: prepare tcf_hashinfo_destroy() for netns support Cong Wang
2016-02-23 13:01 ` Jamal Hadi Salim
2016-02-22 23:57 ` [Patch net-next v2 2/2] net_sched: add network namespace support for tc actions Cong Wang
2016-02-23 13:14 ` Jamal Hadi Salim
2016-02-23 22:23 ` Cong Wang
2016-02-24 13:19 ` Jamal Hadi Salim [this message]
2016-02-24 17:21 ` Cong Wang
2016-02-25 12:17 ` Jamal Hadi Salim
2016-02-24 18:37 ` Cong Wang
2016-02-25 19:16 ` [Patch net-next v2 0/2] " David Miller
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=56CDADDB.5070003@mojatatu.com \
--to=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.