linux/drivers/net/ethernet/intel
Stefan Assmann b6f23d3817 i40e: always propagate error value in i40e_set_vsi_promisc()
The for loop in i40e_set_vsi_promisc() reports errors via dev_err() but
does not propagate the error up the call chain. Instead it continues the
loop and potentially overwrites the reported error value.
This results in the error being recorded in the log buffer, but the
caller might never know anything went the wrong way.

To avoid this situation i40e_set_vsi_promisc() needs to temporarily store
the error after reporting it. This is still not optimal as multiple
different errors may occur, so store the first error and hope that's
the main issue.

Fixes: 37d318d780 (i40e: Remove scheduling while atomic possibility)
Reported-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2020-09-09 15:06:24 -07:00
..
e1000 e1000: Remove unnecessary usages of memset 2020-07-30 10:51:25 -07:00
e1000e treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
fm10k fm10k: convert to new udp_tunnel_nic infra 2020-07-14 17:04:27 -07:00
i40e i40e: always propagate error value in i40e_set_vsi_promisc() 2020-09-09 15:06:24 -07:00
iavf iavf: use generic power management 2020-07-30 08:32:03 -07:00
ice pci-v5.9-changes 2020-08-07 18:48:15 -07:00
igb treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
igbvf igbvf: use generic power management 2020-07-30 08:36:08 -07:00
igc igc: Fix PTP initialization 2020-08-14 09:41:20 -07:00
ixgb pci-v5.9-changes 2020-08-07 18:48:15 -07:00
ixgbe scsi: fcoe: Fix I/O path allocation 2020-08-17 21:52:39 -04:00
ixgbevf Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2020-08-03 18:27:40 -07:00
e100.c e100: use generic power management 2020-07-30 10:50:55 -07:00
Kconfig ice: implement device flash update via devlink 2020-07-28 17:07:06 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00