Imported Upstream version 16.11
[deb_dpdk.git] / drivers / net / bnxt / bnxt_cpr.h
index c176f8c..f9f2adb 100644 (file)
@@ -54,6 +54,7 @@
                                RING_CMP(cpr->cp_ring_struct, raw_cons)))
 
 #define B_CP_DIS_DB(cpr, raw_cons)                                     \
+               rte_smp_wmb();                                          \
                (*(uint32_t *)((cpr)->cp_doorbell) = (DB_CP_FLAGS |     \
                                RING_CMP(cpr->cp_ring_struct, raw_cons)))