X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-pmd%2Fmacswap.c;h=19cda0eac4748244da0bcffb36aab50804db3ba9;hb=826b742b1cf90c16a417fdf1b76a9830ec5bb53d;hp=4b0dbeb507e392fdfe373464a1805095242cc805;hpb=bf56fce1fb45b83747527e6312f61c0fcf3789b8;p=dpdk.git diff --git a/app/test-pmd/macswap.c b/app/test-pmd/macswap.c index 4b0dbeb507..19cda0eac4 100644 --- a/app/test-pmd/macswap.c +++ b/app/test-pmd/macswap.c @@ -56,8 +56,6 @@ #include #include #include -#include -#include #include #include #include @@ -66,6 +64,7 @@ #include #include #include +#include #include "testpmd.h" @@ -113,6 +112,8 @@ pkt_burst_mac_swap(struct fwd_stream *fs) ol_flags = PKT_TX_VLAN_PKT; if (txp->tx_ol_flags & TESTPMD_TX_OFFLOAD_INSERT_QINQ) ol_flags |= PKT_TX_QINQ_PKT; + if (txp->tx_ol_flags & TESTPMD_TX_OFFLOAD_MACSEC) + ol_flags |= PKT_TX_MACSEC; for (i = 0; i < nb_rx; i++) { if (likely(i < nb_rx - 1)) rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[i + 1],