From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: jhs@mojatatu.com, netdev@vger.kernel.org, ebiederm@xmission.com,
alexander.h.duyck@intel.com
Subject: Re: [PATCH ] net_sched: actions - Add default lookup
Date: Sun, 03 Nov 2013 23:12:32 -0500 (EST) [thread overview]
Message-ID: <20131103.231232.1438716028901698864.davem@davemloft.net> (raw)
In-Reply-To: <1383141605.4857.38.camel@edumazet-glaptop.roam.corp.google.com>
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Wed, 30 Oct 2013 07:00:05 -0700
> On Wed, 2013-10-30 at 07:25 -0400, Jamal Hadi Salim wrote:
>> Attached. Tested with simple action.
>>
>> cheers,
>> jamal
>
> Why not setting .lookup to tcf_hash_search
> in the few actions not already doing that ?
>
> This would be more consistent.
> # git grep -n tcf_hash_search
> include/net/act_api.h:92:int tcf_hash_search(struct tc_action *a, u32 index);
> net/sched/act_api.c:198:int tcf_hash_search(struct tc_action *a, u32 index)
> net/sched/act_api.c:209:EXPORT_SYMBOL(tcf_hash_search);
> net/sched/act_csum.c:588: .lookup = tcf_hash_search,
> net/sched/act_gact.c:209: .lookup = tcf_hash_search,
> net/sched/act_ipt.c:301: .lookup = tcf_hash_search,
> net/sched/act_ipt.c:315: .lookup = tcf_hash_search,
> net/sched/act_mirred.c:274: .lookup = tcf_hash_search,
> net/sched/act_nat.c:311: .lookup = tcf_hash_search,
> net/sched/act_pedit.c:246: .lookup = tcf_hash_search,
> net/sched/act_police.c:410: .lookup = tcf_hash_search,
Right, and BUG() if we try to register and action with a NULL .lookup
member.
next prev parent reply other threads:[~2013-11-04 4:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 11:25 [PATCH ] net_sched: actions - Add default lookup Jamal Hadi Salim
2013-10-30 14:00 ` Eric Dumazet
2013-11-04 4:12 ` David Miller [this message]
2013-11-04 4:17 ` David Miller
2013-11-17 15:46 ` Jamal Hadi Salim
2013-11-17 16:23 ` Jamal Hadi Salim
2013-11-05 12:19 ` 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=20131103.231232.1438716028901698864.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexander.h.duyck@intel.com \
--cc=ebiederm@xmission.com \
--cc=eric.dumazet@gmail.com \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).