Re: [PATCH net-next 5/5] gve: Add flow steering ethtool support
From: Jakub Kicinski
Date: Thu May 09 2024 - 23:16:38 EST
On Thu, 9 May 2024 17:19:00 -0700 Ziwei Xiao wrote:
> > How do you think about to increase the application of scope-based resource management
> > at such source code places?
> >
> Is the suggestion to combine dev_hold(netdev) together with
> rtnl_unlock()? If so, I think there might be different usages for
> using rtnl_unlock. For example, some drivers will call rtnl_unlock
> after dev_close(netdev). Please correct me if I'm wrong. Thank you!
We are rather cautious about adoption of the scope-based resource
management in networking. Don't let Markus lead you astray.