Re: [PATCH net-next] devlink: Require devlink lock during device reload
From: Jakub Kicinski
Date: Tue Nov 16 2021 - 08:45:27 EST
On Tue, 16 Nov 2021 08:00:10 +0100 Jiri Pirko wrote:
> >> It is not that we care about events in different namespaces, it is
> >> that rdma, like everything else, doesn't care about namespaces and
> >> wants events from the netdev no matter where it is located.
> >
> >devlink now allows drivers to be net ns-aware, and they should
> >obey if they declare support. Can we add a flag / capability
> >to devlink and make it an explicit opt-in for drivers who care?
>
> Looks kind of odd to me. It is also not possible for netdevice to say if
> it should be net namespace aware or not. The driver should not be the
> one to decide this.
NETIF_F_NETNS_LOCAL, but yeah, if it can be fixed that's obviously better.