From: Jamal Hadi Salim <jhs@mojatatu.com>
To: David Miller <davem@davemloft.net>, eric.dumazet@gmail.com
Cc: netdev@vger.kernel.org, ebiederm@xmission.com,
alexander.h.duyck@intel.com
Subject: Re: [PATCH ] net_sched: actions - Add default lookup
Date: Tue, 05 Nov 2013 07:19:15 -0500 [thread overview]
Message-ID: <5278E243.3020603@mojatatu.com> (raw)
In-Reply-To: <20131103.231232.1438716028901698864.davem@davemloft.net>
Apologies for the latency
My intention was to eventually remove it everywhere since this is needed
by all actions. An action could override it, otherwise they get the
default.
cheers,
jamal
On 11/03/13 23:12, David Miller wrote:
> 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.
>
prev parent reply other threads:[~2013-11-05 12:26 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
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 [this message]
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=5278E243.3020603@mojatatu.com \
--to=jhs@mojatatu.com \
--cc=alexander.h.duyck@intel.com \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=eric.dumazet@gmail.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 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.