]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/macswap.c
app/testpmd: add MACsec commands
[dpdk.git] / app / test-pmd / macswap.c
index f9960398fdc4c54ad84bbb8090501e2653267ff8..3a09351245ca5fd193fbded0c780bc6cc79df708 100644 (file)
@@ -113,6 +113,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],