]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
i40e: Relax i40e_xsk_wakeup's return value when PF is busy
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Wed, 5 Feb 2020 04:58:32 +0000 (05:58 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 24 Feb 2020 15:33:04 +0000 (16:33 +0100)
commita4becd758e7df0876fdfb8ff84b4cb2ff51bf38a
treeef2449be69e5867b21621c50af97308783a8c137
parentd8a0c3710714fb039387513c2148edf1e72022e3
i40e: Relax i40e_xsk_wakeup's return value when PF is busy

BugLink: https://bugs.launchpad.net/bugs/1864488
[ Upstream commit c77e9f09143822623dd71a0fdc84331129e97c3a ]

Return -EAGAIN instead of -ENETDOWN to provide a slightly milder
information to user space so that an application will know to retry the
syscall when __I40E_CONFIG_BUSY bit is set on pf->state.

Fixes: b3873a5be757 ("net/i40e: Fix concurrency issues between config flow and XSK")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Link: https://lore.kernel.org/bpf/20200205045834.56795-2-maciej.fijalkowski@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_xsk.c