X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Fipsec-secgw%2Fipsec-secgw.c;h=6201d850ae84d0113add16d0f472faed3b5b6191;hp=6abf85202826905134ffb5a5ed46d68f95eece5d;hb=ec17993a145a;hpb=0a23d4b6f4c25f64c663fba768df05b291a527e6 diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 6abf852028..6201d850ae 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -1390,6 +1390,11 @@ port_init(uint16_t portid) port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_JUMBO_FRAME; } + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_SECURITY) + port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SECURITY; + if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_SECURITY) + port_conf.txmode.offloads |= DEV_TX_OFFLOAD_SECURITY; + ret = rte_eth_dev_configure(portid, nb_rx_queue, nb_tx_queue, &port_conf); if (ret < 0)