From: Kevin Laatz <kevin.laatz@intel.com>
To: dev@dpdk.org
Cc: bernard.iremonger@intel.com, Kevin Laatz <kevin.laatz@intel.com>
Subject: [dpdk-dev] [PATCH v2] app/testpmd: add check for Rx offload security flag
Date: Mon, 10 Sep 2018 17:28:54 +0100 [thread overview]
Message-ID: <20180910162854.89466-1-kevin.laatz@intel.com> (raw)
In-Reply-To: <20180904123256.61631-1-kevin.laatz@intel.com>
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>
---
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 14ccd68..4c60c7e 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -594,6 +594,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.9.5
next prev parent reply other threads:[~2018-09-10 16:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-04 12:32 [dpdk-dev] [PATCH] app/testpmd: add check for rx " Kevin Laatz
2018-09-07 11:13 ` Ferruh Yigit
2018-09-10 16:16 ` Iremonger, Bernard
2018-09-10 16:28 ` Kevin Laatz [this message]
2018-09-10 16:55 ` [dpdk-dev] [PATCH v2] app/testpmd: add check for Rx " Iremonger, Bernard
2018-09-21 0:51 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180910162854.89466-1-kevin.laatz@intel.com \
--to=kevin.laatz@intel.com \
--cc=bernard.iremonger@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).