OSDN Git Service

net: thunderx: add mutex to protect mailbox from concurrent calls for same VF
[uclinux-h8/linux.git] / drivers / net / ethernet / cavium / thunder / nic.h
index 2273436..86cda3f 100644 (file)
@@ -329,6 +329,8 @@ struct nicvf {
        spinlock_t              rx_mode_wq_lock;
        /* workqueue for handling kernel ndo_set_rx_mode() calls */
        struct workqueue_struct *nicvf_rx_mode_wq;
+       /* mutex to protect VF's mailbox contents from concurrent access */
+       struct mutex            rx_mode_mtx;
 
        /* PTP timestamp */
        struct cavium_ptp       *ptp_clock;