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] app/testpmd: add check for rx offload security flag
Date: Tue, 4 Sep 2018 13:32:56 +0100 [thread overview]
Message-ID: <20180904123256.61631-1-kevin.laatz@intel.com> (raw)
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>
---
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 reply other threads:[~2018-09-04 12:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-04 12:32 Kevin Laatz [this message]
2018-09-07 11:13 ` Ferruh Yigit
2018-09-10 16:16 ` Iremonger, Bernard
2018-09-10 16:28 ` [dpdk-dev] [PATCH v2] app/testpmd: add check for Rx " Kevin Laatz
2018-09-10 16:55 ` 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=20180904123256.61631-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).