]> git.baikalelectronics.ru Git - 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)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 5 Feb 2020 21:06:08 +0000 (22:06 +0100)
commitb4e8acf1a4f7a037c25b3a2db75029156d34550e
treead17a26e849fee488d9014f9a7e7f9ba2ce1cc1e
parent5b715b9a2fbe426f99b1bfe5f867eada81aba98a
i40e: Relax i40e_xsk_wakeup's return value when PF is busy

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: 06ed0ead4481 ("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
drivers/net/ethernet/intel/i40e/i40e_xsk.c