iavf: use mutexes for locking of critical sections
As follow-up to the discussion with Jakub Kicinski about iavf locking being insufficient [1] convert iavf to use mutexes instead of bitops. The locking logic is kept as is, just a drop-in replacement of enum iavf_critical_section_t with separate mutexes. The only difference is that the mutexes will be destroyed before the module is unloaded. [1] https://lwn.net/ml/netdev/20210316150210.00007249%40intel.com/ Signed-off-by:Stefan Assmann <sassmann@kpanic.de> Tested-by:
Marek Szlosek <marek.szlosek@intel.com> Signed-off-by:
Tony Nguyen <anthony.l.nguyen@intel.com>
Showing
- drivers/net/ethernet/intel/iavf/iavf.h 3 additions, 6 deletionsdrivers/net/ethernet/intel/iavf/iavf.h
- drivers/net/ethernet/intel/iavf/iavf_ethtool.c 4 additions, 6 deletionsdrivers/net/ethernet/intel/iavf/iavf_ethtool.c
- drivers/net/ethernet/intel/iavf/iavf_main.c 49 additions, 51 deletionsdrivers/net/ethernet/intel/iavf/iavf_main.c
Loading
Please register or sign in to comment