net/ring: release port upon close
[dpdk.git] / drivers / net / octeontx2 / otx2_ethdev_sec_tx.h
index 2e35a8c..5bf8c19 100644 (file)
@@ -9,6 +9,7 @@
 #include <rte_mbuf.h>
 
 #include "otx2_ethdev_sec.h"
+#include "otx2_security.h"
 
 struct otx2_ipsec_fp_out_hdr {
        uint32_t ip_id;
@@ -86,7 +87,7 @@ otx2_sec_event_tx(struct otx2_ssogws *ws, struct rte_event *ev,
         */
        rte_pktmbuf_append(m, extend_tail);
        data = rte_pktmbuf_prepend(m, extend_head);
-       data_addr = rte_pktmbuf_mtophys(m);
+       data_addr = rte_pktmbuf_iova(m);
 
        /*
         * Move the Ethernet header, to insert otx2_ipsec_fp_out_hdr prior
@@ -159,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);