X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fipsec-secgw%2Fesp.c;h=bd233752c83e26e14554f97df8518c039fa8d15c;hb=0d76e22d11110000d81c08d0c9257891c258a9c7;hp=c1b49da1e795de4337775c4ec58dfe189cf25dd1;hpb=4a67af84f11335e956fae9bcbece2ed12f02019e;p=dpdk.git diff --git a/examples/ipsec-secgw/esp.c b/examples/ipsec-secgw/esp.c index c1b49da1e7..bd233752c8 100644 --- a/examples/ipsec-secgw/esp.c +++ b/examples/ipsec-secgw/esp.c @@ -155,12 +155,12 @@ esp_inbound_post(struct rte_mbuf *m, struct ipsec_sa *sa, RTE_ASSERT(sa != NULL); RTE_ASSERT(cop != NULL); - ips = ipsec_get_session(sa); + ips = ipsec_get_primary_session(sa); if ((ips->type == RTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL) || (ips->type == RTE_SECURITY_ACTION_TYPE_INLINE_CRYPTO)) { - if (m->ol_flags & PKT_RX_SEC_OFFLOAD) { - if (m->ol_flags & PKT_RX_SEC_OFFLOAD_FAILED) + if (m->ol_flags & RTE_MBUF_F_RX_SEC_OFFLOAD) { + if (m->ol_flags & RTE_MBUF_F_RX_SEC_OFFLOAD_FAILED) cop->status = RTE_CRYPTO_OP_STATUS_ERROR; else cop->status = RTE_CRYPTO_OP_STATUS_SUCCESS; @@ -234,7 +234,7 @@ esp_outbound(struct rte_mbuf *m, struct ipsec_sa *sa, RTE_ASSERT(m != NULL); RTE_ASSERT(sa != NULL); - ips = ipsec_get_session(sa); + ips = ipsec_get_primary_session(sa); ip_hdr_len = 0; ip4 = rte_pktmbuf_mtod(m, struct ip *); @@ -464,7 +464,7 @@ esp_outbound_post(struct rte_mbuf *m, if ((type == RTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL) || (type == RTE_SECURITY_ACTION_TYPE_INLINE_CRYPTO)) { - m->ol_flags |= PKT_TX_SEC_OFFLOAD; + m->ol_flags |= RTE_MBUF_F_TX_SEC_OFFLOAD; } else { RTE_ASSERT(cop != NULL); if (cop->status != RTE_CRYPTO_OP_STATUS_SUCCESS) {