From: Jamal Hadi Salim <jhs@mojatatu.com>
To: Cong Wang <xiyou.wangcong@gmail.com>, netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Subject: Re: [Patch net-next 1/6] net_sched: act: fetch hinfo from a->ops->hinfo
Date: Mon, 20 Jan 2014 07:16:37 -0500 [thread overview]
Message-ID: <52DD13A5.6070502@mojatatu.com> (raw)
In-Reply-To: <1389987427-14085-2-git-send-email-xiyou.wangcong@gmail.com>
On 01/17/14 14:37, Cong Wang wrote:
> Every action ops has a pointer to hash info, so we don't need to
> hard-code it in each module.
>
> Cc: Jamal Hadi Salim <jhs@mojatatu.com>
> Cc: David S. Miller <davem@davemloft.net>
> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Although changes like the one below (which are in a few places)
are necessary i.e it was more readable before.
> diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c
> index ee28e1c..a9a3185 100644
> --- a/net/sched/act_csum.c
> +++ b/net/sched/act_csum.c
> - tcf_hash_release(pc, bind, &csum_hash_info);
> + tcf_hash_release(pc, bind, a->ops->hinfo);
> if (!ovr)
cheers,
jamal
next prev parent reply other threads:[~2014-01-20 12:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 19:37 [Patch net-next 0/6] net_sched: act: more cleanup and improvement Cong Wang
2014-01-17 19:37 ` [Patch net-next 1/6] net_sched: act: fetch hinfo from a->ops->hinfo Cong Wang
2014-01-20 12:16 ` Jamal Hadi Salim [this message]
2014-01-21 22:43 ` David Miller
2014-01-17 19:37 ` [Patch net-next 2/6] net_sched: act: export tcf_hash_search() instead of tcf_hash_lookup() Cong Wang
2014-01-20 12:28 ` Jamal Hadi Salim
2014-01-21 22:44 ` David Miller
2014-01-17 19:37 ` [Patch net-next 3/6] net_sched: act: hide struct tcf_common from API Cong Wang
2014-01-20 12:44 ` Jamal Hadi Salim
2014-01-20 13:01 ` Jamal Hadi Salim
2014-01-22 12:44 ` Jamal Hadi Salim
2014-01-23 7:10 ` Cong Wang
2014-01-23 21:37 ` Cong Wang
2014-01-17 19:37 ` [Patch net-next 4/6] net_sched: act: refactor cleanup ops Cong Wang
2014-01-17 19:37 ` [Patch net-next 5/6] net_sched: act: move tcf_hashinfo_init() into tcf_register_action() Cong Wang
2014-01-17 19:37 ` [Patch net-next 6/6] net_sched: act: refuse to remove bound action outside Cong Wang
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=52DD13A5.6070502@mojatatu.com \
--to=jhs@mojatatu.com \
--cc=davem@davemloft.net \
--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.