cxgb4vf: Synchronize access to mailbox
[cascardo/linux.git] / drivers / net / ethernet / chelsio / cxgb4vf / adapter.h
index 734dd77..109bc63 100644 (file)
@@ -353,6 +353,10 @@ struct hash_mac_addr {
        u8 addr[ETH_ALEN];
 };
 
+struct mbox_list {
+       struct list_head list;
+};
+
 /*
  * Per-"adapter" (Virtual Function) information.
  */
@@ -387,6 +391,10 @@ struct adapter {
        /* various locks */
        spinlock_t stats_lock;
 
+       /* lock for mailbox cmd list */
+       spinlock_t mbox_lock;
+       struct mbox_list mlist;
+
        /* support for mailbox command/reply logging */
 #define T4VF_OS_LOG_MBOX_CMDS 256
        struct mbox_cmd_log *mbox_log;