From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0074.outbound.protection.outlook.com [104.47.42.74]) by dpdk.org (Postfix) with ESMTP id 710B85A44 for ; Tue, 2 Oct 2018 21:26:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gdL7N6mXGpzO95b5oSY/SIokTnAi3vU/lfCpCDOgmac=; b=nuJ2LxN+zjLXZC1xL2G1ZofvpodUzU/m4LpJi5b7CbJY85BxhyXRg0M3FjMa8yPxQcESLbCvq2XrxmGe5vgjCKoM/LEAzZKxvaBSB7gchDOpSRGJftiekNLhF2E40a7b4RIDHCNSeyc5cZbxzD1sZu74B4M4Xy1yfH/X09EHTrY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from localhost.localdomain (115.113.156.3) by DM6PR07MB5001.namprd07.prod.outlook.com (2603:10b6:5:25::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.20; Tue, 2 Oct 2018 19:25:39 +0000 From: Jerin Jacob To: Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , John McNamara , Marko Kovacevic Cc: dev@dpdk.org, shahafs@mellanox.com, Jerin Jacob Date: Wed, 3 Oct 2018 00:54:50 +0530 Message-Id: <20181002192451.19119-3-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181002192451.19119-1-jerin.jacob@caviumnetworks.com> References: <20180913134707.23698-1-jerin.jacob@caviumnetworks.com> <20181002192451.19119-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: PN1PR0101CA0069.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::31) To DM6PR07MB5001.namprd07.prod.outlook.com (2603:10b6:5:25::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: deb26092-5469-41ad-aa59-08d6289cd86c X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB5001; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 3:R1EX0b5a1W4YM3bl6nI4KgWfDByknwq7ttrOlE3oT/tXPxDazhv5lIY+ms95fsrCdcgDazo1FZ+qJun7p6N3ECuz7Xim/OkXkt6NhoxZr/4RHuNYNUd0Xpfui2c6OU5tXZr3mfMB1dWofz7NrDMfgd0fVZKGUNRdVtad1oVYW1uMlxIOs4S35VtLnHs0sExdwkr2GgC7McmKZtQzxXv1dEIUq2ZO3AJgRW5v+qsrXtc4UjZeOd3HjS7D4vK2ts1J; 25:xzClEgBzyAwqASfKrH14Qnd2Xf9fpPgis3m29ND270TWRBi+OTYbTwVYiTec4J2hT/mBZCVL33+cSORXiIdkLfSLjfYz/XAJxew552vfB/gfCYeX3A+q5vvUaU/0RsOJ4lH1oJCt3bm4nS6It3T0JUlRxeZQ3oKCeR8xi48+eiBFDlQNhvqWY0iyAIzn4qMhaOb5O2z6ORdC5jl2pO9IBAG0VMosqo8TrZu+RW6nmsIa3E/oIFTC2V+qz3vJaaM7B0XUN6bGhHyKsi9zgeyVksBY4VlwGLixW0HdKI0MdTwxV1Xwpx+l1YnSOCGm5+S8tE+k2EXLMIP6zUhMhEHGFQ==; 31:jrMatRPp4HivlBjoY2oTgk9go+Qry2tpcWG9ce6OEVAu9LhwiZnq8DiB6fGd0hCSf3vw3Y7VkVpBKMlGwWu6Ptk6UxCYpEl8VmUN9DF3mxJTNlBxQ3AQ2LQIGJ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X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(3231355)(944501410)(52105095)(149066)(150057)(6041310)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051); SRVR:DM6PR07MB5001; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB5001; X-Forefront-PRVS: 0813C68E65 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(346002)(39860400002)(136003)(366004)(396003)(189003)(199004)(14444005)(105586002)(2906002)(316002)(106356001)(44832011)(36756003)(2870700001)(1857600001)(26005)(2616005)(11346002)(68736007)(186003)(6116002)(1076002)(476003)(486006)(3846002)(42882007)(50466002)(446003)(386003)(25786009)(53936002)(4326008)(8676002)(81166006)(81156014)(5660300001)(6486002)(48376002)(478600001)(16526019)(956004)(110136005)(6506007)(7736002)(305945005)(8936002)(52116002)(97736004)(72206003)(6512007)(6666003)(51416003)(50226002)(76176011)(66066001)(55236004)(47776003)(69590400006)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB5001; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB5001; 23:l7azMsOzz7SpUyFjXyOV1IykgBp9nVaRzLIu2bJBU?= =?us-ascii?Q?NR0N31B5BMWnjLBqi8jL3A8fM++6GaB/S587vxkp6eJU1U4kmvaZ/kF9AJjz?= =?us-ascii?Q?GsEDiLUzEBRUFqKzhPNVRtoJIwzwrW91pkZZ0CGDENqyRJIqWonFTT1WpCcH?= =?us-ascii?Q?8ECZcpCCDU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Du07Bdnl5MSG?= =?us-ascii?Q?dWZSeyKS2J14NQeP9oce+t+tGlhCE2BRs2LRmi1S72ksZdPJppuug03WYE2Z?= =?us-ascii?Q?f+2ADklCYxoFpUKTB0cSIwAucj1116Ix67oVg5qbLL8J6/E6XYyZl3lzeyi4?= =?us-ascii?Q?2rviddNhgGpVGPg+sO/lxrj8LvB334byKc7BFreY2uMT+/97VnLd4Wbb+Hgs?= =?us-ascii?Q?JUWIr/9REJiL/zF8V3VhBMO2ZBeZMcB9n4D4bOb712jfqF/JQNs3sYnMF5r7?= =?us-ascii?Q?4EGYk2caOretOJ2QU4VzEd77vo2/LvrVwOcVFMvcfH8v+7q2zaczV1Re3C6C?= =?us-ascii?Q?oTNUVMImDZG41+Sez/50DRDGtc=3D?= X-Microsoft-Antispam-Message-Info: K2J13vqrawLSEfuxUnL3JMOjQYKdeV6vPYJgBcpvbAzameriMeW4pDBV/vMdMaR0sTqwWnym3I47QLB8B4lUN8NsHame/NFXedAeaIRAKPgOKwt+ZlpvfppNzp2y7wEunB5MEV1xj5hC8UT0NJWimZrqvuiCQdNCW4v5nDD9fvByym+L+KccgfwdieN7tf2JFxQ3fZ5uXT31DfmMbzaj3Tl7mubAyIJMzuL5HUdbZBgcp6sMtN9wZcTJnagd+KTNKZakfqoHDNlcKnBVdVe+DqdomS1bVXd3Zj3oy3QjIXJ4mYDCiqIOS07gUnRH36H4+tBnes9j587TxcRrE47na+lfV7fT1lpSUZVOFRQrfVM= X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB5001; 6:6fJN7JmVUe73FmcM7pvjSCeotpzJg1dqdq4TlRE6gS/micfRw8TpwKQP3L5vvn1+BCZc31XLbdtA9o7tblL+yqMFNOKsgvdrNYMgkODQGCu827baFSNS0r/hcBIbok1kO/NGeP49uklosGEgj5WQCUmVolvmh/zqvMsOssDvKiE5HfUwN31FLyTCRHcJvN2feIjEs1yaDeRDpuCPaloccakv1FHMpFkZMHQSGth0mFGjZhgx6wLonNYepxB7Irt98elZnntbGnoFRTWiCSxBm9f9pFp5StH7qAiKupUoPxRVO8UcMmU+G6wiDUyG8zVIWmbmyXi4A3fBn2Mko+yiKV8nOVDG9fC6XDjYutr/+z30+H5ZpxF00eESiSAwdRYyZPpobHMNFtXeHJBk8N7CO6bGyQljeHUx/p5U7Ro7rCImVA88so1uIyoYx5jE+rPhIe0M15AVm5mbQoHCvQjKIA==; 5:r7yayeMbsqKKaN90RnBqK48sAfNl79UgSry630RA7cZQCUIKXuIGZMUa3/ndnMcRXU4Jpe1v6YuqpBeSeD9F6/7SvJC1ujRW/h5EH3reSKrazy6z+89Is9oWWhC1YlnQw2yC+bJCtavU/VKPxppTEj+04njXCBAMYThUoFu5TMg=; 7:fhO5o//Inu8AQpcPgqjA3lKQDNtpubigwQbkNuMMq0QuXHj/ln7N1fueYIaB7DPP642pUkG9GYpinNKHE1Z/ebPs1tjWnG3kEZmzbE6ZufaU/f0lLqRN4CsWffpiy0iBmrV9xFDbrpMEuZIH7W1P3aiN1CYDDIiTODIFrJZ9b/+CKInxHU9N64GROBWnqKTin7+Yu+RDLyVKaqcMYFmoOX0X53PNjdH+lHNmvBT7VjiZnQkvrUnNzDltc5F52iLN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 19:25:39.9887 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: deb26092-5469-41ad-aa59-08d6289cd86c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB5001 Subject: [dpdk-dev] [PATCH v2 3/4] app/testpmd: add outer UDP HW checksum support 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: , X-List-Received-Date: Tue, 02 Oct 2018 19:26:54 -0000 Added outer-udp Tx HW checksum support for csum forward engine if device supports DEV_TX_OFFLOAD_OUTER_UDP_CKSUM. Signed-off-by: Jerin Jacob --- v2: - Added outer-udp support for csum engine --- app/test-pmd/cmdline.c | 24 ++++++++++++++++++--- app/test-pmd/csumonly.c | 13 +++++++++-- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 +++++-- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 0c5399dc4..2fd007423 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -397,12 +397,13 @@ static void cmd_help_long_parsed(void *parsed_result, " Disable hardware insertion of a VLAN header in" " packets sent on a port.\n\n" - "csum set (ip|udp|tcp|sctp|outer-ip) (hw|sw) (port_id)\n" + "csum set (ip|udp|tcp|sctp|outer-ip|outer-udp) (hw|sw) (port_id)\n" " Select hardware or software calculation of the" " checksum when transmitting a packet using the" " csum forward engine.\n" " ip|udp|tcp|sctp always concern the inner layer.\n" " outer-ip concerns the outer IP layer in" + " outer-udp concerns the outer UDP layer in" " case the packet is recognized as a tunnel packet by" " the forward engine (vxlan, gre and ipip are supported)\n" " Please check the NIC datasheet for HW limits.\n\n" @@ -4177,6 +4178,8 @@ csum_show(int port_id) (tx_offloads & DEV_TX_OFFLOAD_SCTP_CKSUM) ? "hw" : "sw"); printf("Outer-Ip checksum offload is %s\n", (tx_offloads & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ? "hw" : "sw"); + printf("Outer-Udp checksum offload is %s\n", + (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) ? "hw" : "sw"); /* display warnings if configuration is not supported by the NIC */ rte_eth_dev_info_get(port_id, &dev_info); @@ -4205,6 +4208,12 @@ csum_show(int port_id) printf("Warning: hardware outer IP checksum enabled but not " "supported by port %d\n", port_id); } + if ((tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) && + (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) + == 0) { + printf("Warning: hardware outer UDP checksum enabled but not " + "supported by port %d\n", port_id); + } } static void @@ -4273,6 +4282,15 @@ cmd_csum_parsed(void *parsed_result, printf("Outer IP checksum offload is not " "supported by port %u\n", res->port_id); } + } else if (!strcmp(res->proto, "outer-udp")) { + if (hw == 0 || (dev_info.tx_offload_capa & + DEV_TX_OFFLOAD_OUTER_UDP_CKSUM)) { + csum_offloads |= + DEV_TX_OFFLOAD_OUTER_UDP_CKSUM; + } else { + printf("Outer UDP checksum offload is not " + "supported by port %u\n", res->port_id); + } } if (hw) { @@ -4296,7 +4314,7 @@ cmdline_parse_token_string_t cmd_csum_mode = mode, "set"); cmdline_parse_token_string_t cmd_csum_proto = TOKEN_STRING_INITIALIZER(struct cmd_csum_result, - proto, "ip#tcp#udp#sctp#outer-ip"); + proto, "ip#tcp#udp#sctp#outer-ip#outer-udp"); cmdline_parse_token_string_t cmd_csum_hwsw = TOKEN_STRING_INITIALIZER(struct cmd_csum_result, hwsw, "hw#sw"); @@ -4307,7 +4325,7 @@ cmdline_parse_token_num_t cmd_csum_portid = cmdline_parse_inst_t cmd_csum_set = { .f = cmd_csum_parsed, .data = NULL, - .help_str = "csum set ip|tcp|udp|sctp|outer-ip hw|sw : " + .help_str = "csum set ip|tcp|udp|sctp|outer-ip|outer-udp hw|sw : " "Enable/Disable hardware calculation of L3/L4 checksum when " "using csum forward engine", .tokens = { diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 494829266..ea5b112d6 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -468,10 +468,15 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info, if (info->outer_l4_proto != IPPROTO_UDP) return ol_flags; + /* Skip SW outer UDP checksum generation if HW supports it */ + if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) { + ol_flags |= PKT_TX_OUTER_UDP_CKSUM; + return ol_flags; + } + udp_hdr = (struct udp_hdr *)((char *)outer_l3_hdr + info->outer_l3_len); - /* outer UDP checksum is done in software as we have no hardware - * supporting it today, and no API for it. In the other side, for + /* outer UDP checksum is done in software. In the other side, for * UDP tunneling, like VXLAN or Geneve, outer UDP checksum can be * set to zero. * @@ -826,6 +831,8 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) if (info.tunnel_tso_segsz || (tx_offloads & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) || + (tx_offloads & + DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) || (tx_ol_flags & PKT_TX_OUTER_IPV6)) { m->outer_l2_len = info.outer_l2_len; m->outer_l3_len = info.outer_l3_len; @@ -898,6 +905,8 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) if (info.is_tunnel == 1) { if ((tx_offloads & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) || + (tx_offloads & + DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) || (tx_ol_flags & PKT_TX_OUTER_IPV6)) printf("tx: m->outer_l2_len=%d " "m->outer_l3_len=%d\n", diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 3a73000a6..cfcabf6f0 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -857,7 +857,7 @@ csum set Select hardware or software calculation of the checksum when transmitting a packet using the ``csum`` forwarding engine:: - testpmd> csum set (ip|udp|tcp|sctp|outer-ip) (hw|sw) (port_id) + testpmd> csum set (ip|udp|tcp|sctp|outer-ip|outer-udp) (hw|sw) (port_id) Where: @@ -867,6 +867,10 @@ Where: as a tunnel packet by the forwarding engine (vxlan, gre and ipip are supported). See also the ``csum parse-tunnel`` command. +* ``outer-udp`` relates to the outer UDP layer in the case where the packet is recognized + as a tunnel packet by the forwarding engine (vxlan, vxlan-gpe are + supported). See also the ``csum parse-tunnel`` command. + .. note:: Check the NIC Datasheet for hardware limits. @@ -940,7 +944,7 @@ Consider a packet in packet like the following:: * If parse-tunnel is enabled, the ``ip|udp|tcp|sctp`` parameters of ``csum set`` command relate to the inner headers (here ``ipv4_in`` and ``tcp_in``), and the - ``outer-ip parameter`` relates to the outer headers (here ``ipv4_out``). + ``outer-ip|outer-udp`` parameter relates to the outer headers (here ``ipv4_out`` and ``udp_out``). * If parse-tunnel is disabled, the ``ip|udp|tcp|sctp`` parameters of ``csum set`` command relate to the outer headers, here ``ipv4_out`` and ``udp_out``. -- 2.19.0