ixgbe: use atomic bitwise operations when handling reset requests
Use atomic bitwise operations when setting and checking reset requests. This should help with possible races in the service task. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
ee95053f78
commit
57ca2a4fed
@@ -653,7 +653,6 @@ struct ixgbe_adapter {
|
||||
#define IXGBE_FLAG2_TEMP_SENSOR_EVENT BIT(3)
|
||||
#define IXGBE_FLAG2_SEARCH_FOR_SFP BIT(4)
|
||||
#define IXGBE_FLAG2_SFP_NEEDS_RESET BIT(5)
|
||||
#define IXGBE_FLAG2_RESET_REQUESTED BIT(6)
|
||||
#define IXGBE_FLAG2_FDIR_REQUIRES_REINIT BIT(7)
|
||||
#define IXGBE_FLAG2_RSS_FIELD_IPV4_UDP BIT(8)
|
||||
#define IXGBE_FLAG2_RSS_FIELD_IPV6_UDP BIT(9)
|
||||
@@ -840,6 +839,7 @@ enum ixgbe_state_t {
|
||||
__IXGBE_IN_SFP_INIT,
|
||||
__IXGBE_PTP_RUNNING,
|
||||
__IXGBE_PTP_TX_IN_PROGRESS,
|
||||
__IXGBE_RESET_REQUESTED,
|
||||
};
|
||||
|
||||
struct ixgbe_cb {
|
||||
|
Reference in New Issue
Block a user