From: <viveksharma@marvell.com>
To: <dev@dpdk.org>
Cc: <intoviveksharma@gmail.com>, <ferruh.yigit@intel.com>,
Vivek Sharma <viveksharma@marvell.com>
Subject: [dpdk-dev] [PATCH v2] app/testpmd: introduce QinQ offload argument
Date: Fri, 11 Oct 2019 08:06:54 +0530 [thread overview]
Message-ID: <1570761414-1983-1-git-send-email-viveksharma@marvell.com> (raw)
In-Reply-To: <1570681045-1257-1-git-send-email-viveksharma@marvell.com>
From: Vivek Sharma <viveksharma@marvell.com>
Introduce boot time argument for configuring QinQ strip
offload.
Signed-off-by: Vivek Sharma <viveksharma@marvell.com>
---
v2:
* Moved 'port_infos_display' change to another patch.
app/test-pmd/parameters.c | 6 ++++++
doc/guides/testpmd_app_ug/run_app.rst | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
index 6c78dca..6885eed 100644
--- a/app/test-pmd/parameters.c
+++ b/app/test-pmd/parameters.c
@@ -135,6 +135,7 @@ usage(char* progname)
printf(" --enable-hw-vlan-filter: enable hardware vlan filter.\n");
printf(" --enable-hw-vlan-strip: enable hardware vlan strip.\n");
printf(" --enable-hw-vlan-extend: enable hardware vlan extend.\n");
+ printf(" --enable-hw-qinq-strip: enable hardware qinq strip.\n");
printf(" --enable-drop-en: enable per queue packet drop.\n");
printf(" --disable-rss: disable rss.\n");
printf(" --port-topology=N: set port topology (N: paired (default) or "
@@ -608,6 +609,7 @@ launch_args_parse(int argc, char** argv)
{ "enable-hw-vlan-filter", 0, 0, 0 },
{ "enable-hw-vlan-strip", 0, 0, 0 },
{ "enable-hw-vlan-extend", 0, 0, 0 },
+ { "enable-hw-qinq-strip", 0, 0, 0 },
{ "enable-drop-en", 0, 0, 0 },
{ "disable-rss", 0, 0, 0 },
{ "port-topology", 1, 0, 0 },
@@ -995,6 +997,10 @@ launch_args_parse(int argc, char** argv)
"enable-hw-vlan-extend"))
rx_offloads |= DEV_RX_OFFLOAD_VLAN_EXTEND;
+ if (!strcmp(lgopts[opt_idx].name,
+ "enable-hw-qinq-strip"))
+ rx_offloads |= DEV_RX_OFFLOAD_QINQ_STRIP;
+
if (!strcmp(lgopts[opt_idx].name, "enable-drop-en"))
rx_drop_en = 1;
diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst
index d0d89b3..9723cf5 100644
--- a/doc/guides/testpmd_app_ug/run_app.rst
+++ b/doc/guides/testpmd_app_ug/run_app.rst
@@ -198,6 +198,10 @@ The command line options are:
Enable hardware VLAN extend.
+* ``--enable-hw-qinq-strip``
+
+ Enable hardware QINQ strip.
+
* ``--enable-drop-en``
Enable per-queue packet drop for packets with no descriptors.
--
2.7.4
next prev parent reply other threads:[~2019-10-11 2:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-10 4:17 [dpdk-dev] [PATCH] app/testpmd: introduce QinQ offload argument viveksharma
2019-10-11 2:36 ` viveksharma [this message]
2019-10-14 10:43 ` [dpdk-dev] [PATCH v2] " 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=1570761414-1983-1-git-send-email-viveksharma@marvell.com \
--to=viveksharma@marvell.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=intoviveksharma@gmail.com \
/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).