Skip to contentSkip to conversation

netdev call - May 7th

ANN Jakub Kicinski 3 participants 5 messages May 6, 2024 – Jun 13, 2024

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
Quoted 7 lines · Jakub Kicinski

Hi!

The bi-weekly call is scheduled for tomorrow at 8:30 am (PT) / 5:30 pm (~EU). Last call before the merge window. No agenda items have been submitted so far.

See you at https://bbb.lwn.net/b/jak-wkr-seg-hjn

Maybe we can have a quick discussion and poll about:

https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

Do we want patches like this? What do people think about guard() vs scoped_guard().

Andrew

#2 lore raw
Quoted 9 lines · Andrew Lunn
Quoted 7 lines · Jakub Kicinski

Hi!

The bi-weekly call is scheduled for tomorrow at 8:30 am (PT) / 5:30 pm (~EU). Last call before the merge window. No agenda items have been submitted so far.

See you at https://bbb.lwn.net/b/jak-wkr-seg-hjn

Quoted 9 lines

Maybe we can have a quick discussion and poll about:

https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

Do we want patches like this? What do people think about guard() vs scoped_guard().

Andrew

Was it discussed? Any conclusions?

#3 lore raw
Quoted 12 lines · Przemek Kitszel
Quoted 11 lines · Andrew Lunn
Quoted 7 lines · Jakub Kicinski

Hi!

The bi-weekly call is scheduled for tomorrow at 8:30 am (PT) / 5:30 pm (~EU). Last call before the merge window. No agenda items have been submitted so far.

See you at https://bbb.lwn.net/b/jak-wkr-seg-hjn

Maybe we can have a quick discussion and poll about:

Quoted 8 lines
Quoted 7 lines

https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

Do we want patches like this? What do people think about guard() vs scoped_guard().

Andrew

Was it discussed? Any conclusions?

Sorry, i should of submitted a netdev FAQ Documentation patch by now.

The summary is: scoped_guard() is O.K. for new code. guard() is too magical, and should not be used. Neither should be used in old code, where we perceive a danger it will actually cause more bugs when back porting fixes.

We do acknowledge these mechanisms could be useful at avoiding bugs, but want to wait and see how they work out in practice. It could be the restrictions on reworking old code is lifted, and guard() allowed, in a few years.

Andrew

author maintainer
#4 lore raw
In reply to Przemek Kitszel
Quoted 1 line · On Thu, 13 Jun 2024 14:11:11 +0200 Przemek Kitszel wrote:

Was it discussed? Any conclusions?

Y'all keep reinventing and working around locks with gazillion flags. I really hope the step 0 for you will be to figure out a sane locking scheme :( guard() is not gonna change the math.