From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5917EA3160 for ; Fri, 11 Oct 2019 04:37:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1E4681E954; Fri, 11 Oct 2019 04:37:05 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id C4D4A1E947 for ; Fri, 11 Oct 2019 04:37:03 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9B2Z4mI028881; Thu, 10 Oct 2019 19:37:03 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=HdyK1UY+Q//fwwFYBZzSb6XqFWIVLPX1rk/A70DLdjQ=; b=SwWQMx1N0T39wpwkNq7fhWwpO3TtUHJO6w+BBnroeRd8EsrmIJW6s1muG/4P9PIHlWGk fhC+JpULfUL9B36M7rBTE7Q6JUvPcOvwYRzE3t0EL5kI4ZePfy0fGDsiSYNmP6pbiI9z 7IU92lA79npG5QScYpHMIEomA3D1eH59ic0KLlg+JTHrtpG1y6kRmRWBVRJB5N8TCiCx C7OvYYAlxVWxheD0H/mL5/57MdMeNlNuQYSnz8PsaoYUj8H01W+nAPL6tb8+nwofVDyr bXKwS9nJKg0CqdAXnxV2Vy9nDl2CkTNQjTne1oEX+QrR5dlTrwfC/f588nFuo5v4qL2N +A== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2vhdxbyuh5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 10 Oct 2019 19:37:03 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 10 Oct 2019 19:37:01 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 10 Oct 2019 19:37:01 -0700 Received: from dell-e5540.caveonetworks.com (unknown [10.29.16.81]) by maili.marvell.com (Postfix) with ESMTP id 086103F703F; Thu, 10 Oct 2019 19:36:57 -0700 (PDT) From: To: CC: , , Vivek Sharma Date: Fri, 11 Oct 2019 08:06:54 +0530 Message-ID: <1570761414-1983-1-git-send-email-viveksharma@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570681045-1257-1-git-send-email-viveksharma@marvell.com> References: <1570681045-1257-1-git-send-email-viveksharma@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-11_01:2019-10-10,2019-10-11 signatures=0 Subject: [dpdk-dev] [PATCH v2] app/testpmd: introduce QinQ offload argument X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Vivek Sharma Introduce boot time argument for configuring QinQ strip offload. Signed-off-by: Vivek Sharma --- 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