examples/l3fwd: fix aliasing in port grouping
[dpdk.git] / examples / l3fwd / l3fwd_neon.h
index 4bc1613..b319b5a 100644 (file)
@@ -114,6 +114,7 @@ port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp, uint16x8_t dp1,
 
        /* update last port counter. */
        lp[0] += gptbl[v].lpv;
+       rte_compiler_barrier();
 
        /* if dest port value has changed. */
        if (v != GRPMSK) {