From 5d85a49661b5c1ad2fa71547ed5fe6490427738a Mon Sep 17 00:00:00 2001 From: Kevin Laatz Date: Mon, 10 Sep 2018 17:28:54 +0100 Subject: [PATCH] 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 --- app/test-pmd/config.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 & -- 2.20.1