ixgbevf: Add lock around mailbox ops to prevent simultaneous access
This change adds a spinlock around the mailbox accesses to prevent simultaneous access to the mailboxes. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
9297127b9c
commit
1c55ed768b
@@ -249,6 +249,8 @@ struct ixgbevf_adapter {
|
||||
bool link_up;
|
||||
|
||||
struct work_struct watchdog_task;
|
||||
|
||||
spinlock_t mbx_lock;
|
||||
};
|
||||
|
||||
enum ixbgevf_state_t {
|
||||
|
Reference in New Issue
Block a user