[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220727161725.jalgpkk4zvskdfh4@skbuf>
Date: Wed, 27 Jul 2022 16:17:25 +0000
From: Vladimir Oltean <vladimir.oltean@....com>
To: Stephen Hemminger <stephen@...workplumber.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Jonathan Toppins <jtoppins@...hat.com>,
Jay Vosburgh <j.vosburgh@...il.com>,
Veaceslav Falico <vfalico@...il.com>,
Hangbin Liu <liuhangbin@...il.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>,
Brian Hutchinson <b.hutchman@...il.com>
Subject: Re: [PATCH v2 net] net/sched: make dev_trans_start() have a better
chance of working with stacked interfaces
On Wed, Jul 27, 2022 at 08:44:04AM -0700, Stephen Hemminger wrote:
> On Wed, 27 Jul 2022 18:20:00 +0300
> Vladimir Oltean <vladimir.oltean@....com> wrote:
>
> > + do {
> > + have_lowers = false;
> > +
> > + netdev_for_each_lower_dev(dev, lower, iter) {
> > + have_lowers = true;
> > + dev = lower;
> > + break;
> > + }
> > + } while (have_lower
>
> Would be clearer if this was a helper function.
> Something like dev_leaf_device?
Probably dev_leaf_device_rcu() I presume, so that the caller takes and
keeps the RCU critical section for as long as the leaf device is
actually being used, right?
Powered by blists - more mailing lists