[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240529185428.2fd13cd7@kernel.org>
Date: Wed, 29 May 2024 18:54:28 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Jacob Keller <jacob.e.keller@...el.com>
Cc: David Miller <davem@...emloft.net>, netdev <netdev@...r.kernel.org>,
Michal Kubiak <michal.kubiak@...el.com>, Wojciech Drewek
<wojciech.drewek@...el.com>, George Kuruvinakunnel
<george.kuruvinakunnel@...el.com>, Maciej Fijalkowski
<maciej.fijalkowski@...el.com>
Subject: Re: [PATCH net 4/8] i40e: Fix XDP program unloading while removing
the driver
On Tue, 28 May 2024 15:06:07 -0700 Jacob Keller wrote:
> + /* Called from netdev unregister context. Unload the XDP program. */
> + if (vsi->netdev->reg_state == NETREG_UNREGISTERING) {
> + xdp_features_clear_redirect_target(vsi->netdev);
> + old_prog = xchg(&vsi->xdp_prog, NULL);
> + if (old_prog)
> + bpf_prog_put(old_prog);
> +
> + return 0;
> + }
This is not great. The netdevice is closed at this stage, why is the xdp
setup try to do work if the device is closed even when not
unregistering?
Powered by blists - more mailing lists