netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <edumazet@google.com>
To: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: "David S . Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	 Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
	 Cong Wang <xiyou.wangcong@gmail.com>,
	Jiri Pirko <jiri@resnulli.us>,
	netdev@vger.kernel.org,  eric.dumazet@gmail.com
Subject: Re: [PATCH net-next 1/4] net_sched: remove BH blocking in eight actions
Date: Fri, 29 Aug 2025 00:19:49 -0700	[thread overview]
Message-ID: <CANn89i+-Qz9QQxBt4s2HFMo-DavOnki-UqSRRGuT8K1mw1T5yg@mail.gmail.com> (raw)
In-Reply-To: <CAM0EoMnk8KB780U=qpv+aqvvJuQX_yWgdx4ESJ64vzuQRwvmLw@mail.gmail.com>

On Thu, Aug 28, 2025 at 8:29 PM Jamal Hadi Salim <jhs@mojatatu.com> wrote:
>
> On Thu, Aug 28, 2025 at 11:26 PM Jamal Hadi Salim <jhs@mojatatu.com> wrote:
> >
> > On Wed, Aug 27, 2025 at 8:53 AM Eric Dumazet <edumazet@google.com> wrote:
> > >
> > > Followup of f45b45cbfae3 ("Merge branch
> > > 'net_sched-act-extend-rcu-use-in-dump-methods'")
> > >
> > > We never grab tcf_lock from BH context in these modules:
> > >
> > >  act_connmark
> > >  act_csum
> > >  act_ct
> > >  act_ctinfo
> > >  act_mpls
> > >  act_nat
> > >  act_pedit
> > >  act_skbedit
> > >
> > > No longer block BH when acquiring tcf_lock from init functions.
> > >
> >
> > Brief glance: isnt  the lock still held in BH context for some actions
> > like pedit and nat (albeit in corner cases)? Both actions call
> > tcf_action_update_bstats in their act callbacks.
> > i.e if the action instance was not created with percpu stats,
> > tcf_action_update_bstats will grab the lock.
> >
>
> Testing with lockdep should illustrate this..

Thanks, I will take a look shortly !

  reply	other threads:[~2025-08-29  7:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-27 12:53 [PATCH net-next 0/4] net_sched: extend RCU use in dump() methods (II) Eric Dumazet
2025-08-27 12:53 ` [PATCH net-next 1/4] net_sched: remove BH blocking in eight actions Eric Dumazet
2025-08-28 15:25   ` Simon Horman
2025-08-29  3:26   ` Jamal Hadi Salim
2025-08-29  3:28     ` Jamal Hadi Salim
2025-08-29  7:19       ` Eric Dumazet [this message]
2025-08-29 16:03         ` Eric Dumazet
2025-09-01  4:45           ` Jamal Hadi Salim
2025-09-01  7:46             ` Eric Dumazet
2025-08-27 12:53 ` [PATCH net-next 2/4] net_sched: act_vlan: use RCU in tcf_vlan_dump() Eric Dumazet
2025-08-28 15:25   ` Simon Horman
2025-08-27 12:53 ` [PATCH net-next 3/4] net_sched: act_tunnel_key: use RCU in tunnel_key_dump() Eric Dumazet
2025-08-28 15:25   ` Simon Horman
2025-08-27 12:53 ` [PATCH net-next 4/4] net_sched: act_skbmod: use RCU in tcf_skbmod_dump() Eric Dumazet
2025-08-28 15:26   ` Simon Horman
2025-08-29  0:00 ` [PATCH net-next 0/4] net_sched: extend RCU use in dump() methods (II) patchwork-bot+netdevbpf

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=CANn89i+-Qz9QQxBt4s2HFMo-DavOnki-UqSRRGuT8K1mw1T5yg@mail.gmail.com \
    --to=edumazet@google.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=horms@kernel.org \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --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).