From: Jakub Kicinski <kuba@kernel•org>
To: Lukasz Majewski <lukma@denx•de>
Cc: netdev@vger•kernel.org, Paolo Abeni <pabeni@redhat•com>,
Casper Andersson <casper.casan@gmail•com>,
Andrew Lunn <andrew@lunn•ch>, Eric Dumazet <edumazet@google•com>,
Vladimir Oltean <olteanv@gmail•com>,
"David S. Miller" <davem@davemloft•net>,
Oleksij Rempel <o.rempel@pengutronix•de>,
Tristram.Ha@microchip•com,
Sebastian Andrzej Siewior <bigeasy@linutronix•de>,
Ravi Gunasekaran <r-gunasekaran@ti•com>,
Simon Horman <horms@kernel•org>,
Nikita Zhandarovich <n.zhandarovich@fintech•ru>,
Murali Karicheri <m-karicheri2@ti•com>,
Jiri Pirko <jiri@resnulli•us>,
Dan Carpenter <dan.carpenter@linaro•org>,
Ziyang Xuan <william.xuanziyang@huawei•com>,
Shigeru Yoshida <syoshida@redhat•com>,
"Ricardo B. Marliere" <ricardo@marliere•net>,
linux-kernel@vger•kernel.org
Subject: Re: [net-next PATCH] hsr: Simplify code for announcing HSR nodes timer setup
Date: Tue, 30 Apr 2024 07:42:52 -0700 [thread overview]
Message-ID: <20240430074252.2690b639@kernel.org> (raw)
In-Reply-To: <20240430145243.34b82105@wsk>
On Tue, 30 Apr 2024 14:52:43 +0200 Lukasz Majewski wrote:
> > Practically speaking I'm not sure if anyone uses any of the weird
> > IFF_* flags, but they are defined in uAPI (enum net_device_flags) and
> > I don't see much validation so presumably it's possible to flip them.
>
> Ok, I see.
>
> Then - what would you recommend instead? The approach with manual
> checking the previous state has described drawbacks.
Add a bool somewhere to track if the timer has been scheduled?
The NETDEV_ events in question are called under rtnl_lock, so
no extra locking should be needed.
prev parent reply other threads:[~2024-04-30 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 15:39 [net-next PATCH] hsr: Simplify code for announcing HSR nodes timer setup Lukasz Majewski
2024-04-27 0:33 ` Jakub Kicinski
2024-04-29 10:09 ` Lukasz Majewski
2024-04-29 17:40 ` Jakub Kicinski
2024-04-30 12:52 ` Lukasz Majewski
2024-04-30 14:42 ` Jakub Kicinski [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=20240430074252.2690b639@kernel.org \
--to=kuba@kernel$(echo .)org \
--cc=Tristram.Ha@microchip$(echo .)com \
--cc=andrew@lunn$(echo .)ch \
--cc=bigeasy@linutronix$(echo .)de \
--cc=casper.casan@gmail$(echo .)com \
--cc=dan.carpenter@linaro$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=horms@kernel$(echo .)org \
--cc=jiri@resnulli$(echo .)us \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=lukma@denx$(echo .)de \
--cc=m-karicheri2@ti$(echo .)com \
--cc=n.zhandarovich@fintech$(echo .)ru \
--cc=netdev@vger$(echo .)kernel.org \
--cc=o.rempel@pengutronix$(echo .)de \
--cc=olteanv@gmail$(echo .)com \
--cc=pabeni@redhat$(echo .)com \
--cc=r-gunasekaran@ti$(echo .)com \
--cc=ricardo@marliere$(echo .)net \
--cc=syoshida@redhat$(echo .)com \
--cc=william.xuanziyang@huawei$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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