summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKevin Laatz <kevin.laatz@intel.com>2018-09-10 17:28:54 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-09-28 01:41:02 +0200
commit5d85a49661b5c1ad2fa71547ed5fe6490427738a (patch)
treef45ec8e7e63e97aef1433d692f84aaba75075ab0 /app
parent48329b0403f201808a67d41e05aaca86257e97aa (diff)
downloaddpdk-5d85a49661b5c1ad2fa71547ed5fe6490427738a.zip
dpdk-5d85a49661b5c1ad2fa71547ed5fe6490427738a.tar.gz
dpdk-5d85a49661b5c1ad2fa71547ed5fe6490427738a.tar.xz
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 <kevin.laatz@intel.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/config.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index a0f9349..5ba59b0 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 &