netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: jhs@mojatatu.com
Cc: netdev@vger.kernel.org, xiyou.wangcong@gmail.com, eric.dumazet@gmail.com
Subject: Re: [PATCH net-next 1/3] net_sched: act: Dont increment refcnt on replace
Date: Fri, 27 Dec 2013 12:50:18 -0500 (EST)	[thread overview]
Message-ID: <20131227.125018.829521862249543338.davem@davemloft.net> (raw)
In-Reply-To: <1387803733-19709-2-git-send-email-jhs@mojatatu.com>

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: Mon, 23 Dec 2013 08:02:11 -0500

>  This is a bug fix. The existing code tries to kill many
>  birds with one stone: Handling binding of actions to
>  filters, new actions and replacing of action
>  attributes. A simple test case to illustrate:
> 
> XXXX
>  moja@fe1:~$ sudo tc actions add action drop index 12
>  moja@fe1:~$ actions get action gact index 12        
>  action order 1: gact action drop
>   random type none pass val 0 
>   index 12 ref 1 bind 0
>  moja@fe1:~$ sudo tc actions replace action ok index 12
>  moja@fe1:~$ actions get action gact index 12        
>  action order 1: gact action drop
>   random type none pass val 0 
>   index 12 ref 2 bind 0
> XXXX
> 
> The above shows the refcounf being wrongly incremented on replace.
> There are more complex scenarios with binding of actions to filters
> that i am leaving out that didnt work as well...
> 
> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>

Applied to 'net', thanks.

  parent reply	other threads:[~2013-12-27 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1387803733-19709-1-git-send-email-jhs@mojatatu.com>
     [not found] ` <1387803733-19709-2-git-send-email-jhs@mojatatu.com>
2013-12-24  0:41   ` [PATCH net-next 1/3] net_sched: act: Dont increment refcnt on replace Cong Wang
2013-12-26 11:58     ` Jamal Hadi Salim
2013-12-27 17:50   ` David Miller [this message]
2014-01-03 12:24 ` [PATCH net-next 0/3] net_sched: act: Various fixes Jamal Hadi Salim
2014-01-06 21:46   ` David Miller
     [not found] ` <1387803733-19709-3-git-send-email-jhs@mojatatu.com>
2014-01-06 21:47   ` [PATCH net-next 2/3] Remove unnecessary checks for act->ops David Miller
     [not found] ` <1387803733-19709-4-git-send-email-jhs@mojatatu.com>
2014-01-06 21:47   ` [Patch net-next 3/3] net_sched: act: action flushing missaccounting 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=20131227.125018.829521862249543338.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=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 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).