net/mlx5: make VLAN network interface thread safe
[dpdk.git] / drivers / net / octeontx2 / otx2_ethdev_sec_tx.h
index 15122b4..284bcd5 100644 (file)
@@ -55,7 +55,7 @@ otx2_sec_event_tx(struct otx2_ssogws *ws, struct rte_event *ev,
                struct nix_iova_s nix_iova;
        } *sd;
 
-       priv = get_sec_session_private_data((void *)(m->udata64));
+       priv = get_sec_session_private_data((void *)(*rte_security_dynfield(m)));
        sess = &priv->ipsec.ip;
        sa = &sess->out_sa;
 
@@ -160,7 +160,7 @@ otx2_sec_event_tx(struct otx2_ssogws *ws, struct rte_event *ev,
        sess->ip_id++;
        sess->esn++;
 
-       rte_cio_wmb();
+       rte_io_wmb();
 
        do {
                otx2_lmt_mov(sess->cpt_lmtline, &inst, 2);