From: Kevin Laatz Date: Mon, 10 Sep 2018 16:28:54 +0000 (+0100) Subject: app/testpmd: add check for Rx offload security flag X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5d85a49661b5c1ad2fa71547ed5fe6490427738a;p=dpdk.git app/testpmd: add check for Rx offload security flag Add a check for the DEV_RX_OFFLOAD_SECURITY flag to the port_offload_cap_display(). Signed-off-by: Kevin Laatz Reviewed-by: Ferruh Yigit Acked-by: Bernard Iremonger --- diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index a0f934932e..5ba59b09b5 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -612,6 +612,15 @@ port_offload_cap_display(portid_t port_id) printf("off\n"); } + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_SECURITY) { + printf("RX offload security: "); + if (ports[port_id].dev_conf.rxmode.offloads & + DEV_RX_OFFLOAD_SECURITY) + printf("on\n"); + else + printf("off\n"); + } + if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_VLAN_INSERT) { printf("VLAN insert: "); if (ports[port_id].dev_conf.txmode.offloads &