From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0049.outbound.protection.outlook.com [104.47.37.49]) by dpdk.org (Postfix) with ESMTP id 91DDE2BBD; Fri, 5 Oct 2018 06:46:58 +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=42foBFXD8xCKb+vCAVsWFIqyAkhctwHQTaVZ7fqWiz4=; b=B/UPu9I4ZuXCgdFpWA8RZGnJDm6CrpAG9QY0hMJvOgfC0L4fCPKpE76apNK8nRcbeS+aNyQ+I2uU1p4axpLHrjfq27RyiK0/vgGUP2jvjHFoFaHSYcVEbSklDRcyWDCuQwtV0SgjM5xl5JTZyAcAvAaxt+187oxrU+sf93fHYlw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from localhost.localdomain (2401:4900:2181:f61f:bd54:2df9:6584:d687) by SN6PR07MB5007.namprd07.prod.outlook.com (2603:10b6:805:ac::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.23; Fri, 5 Oct 2018 04:46:50 +0000 From: Jerin Jacob To: John McNamara , Marko Kovacevic Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@intel.com, arybchenko@solarflare.com, olivier.matz@6wind.com, Jerin Jacob , stable@dpdk.org Date: Fri, 5 Oct 2018 10:16:04 +0530 Message-Id: <20181005044606.27026-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [2401:4900:2181:f61f:bd54:2df9:6584:d687] X-ClientProxiedBy: PN1PR0101CA0010.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::20) To SN6PR07MB5007.namprd07.prod.outlook.com (2603:10b6:805:ac::33) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0598013-4db0-4ada-0b59-08d62a7d9427 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB5007; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5007; 3:4WCNN87Ps/B9nvZ6Xsy33DgIhOA2s9pHY4wEgoW+C5ltuFAjLBExPf36Hcbkug0qFNvImjea8btdYkOj6xs77JE8TfzHH486kpfv+N/1I9THkPwVwl9+AhS/I+wMGyZ9117KNvSP0cVnjlA9WXjcVReWlQr01ftO8o9Yd19M96MzlDnijZEkAXKjVtXOU71YkIleWt0qGS9d91LTR7E9f0bKBjNwrX4cZjBGubIVFIE4uZj7IEJBvzVfrIuTwziA; 25:cUFctTgY1de4Tm68VGAnaVVoakRpF3eCC6rRcbRqK0YceK5kRvDFABYbtszecag7QxtwtHULQSQYg1e+Hu7fIG1DrZBz24Gt0HigrFFVzXCcIs9eYu4fzQWyuvReWZ9V+olTf0a9cJJhkaMOhvfAknmJ6m5IwryHmg7ZJChYRoFSC/XrEfrybH1DlOihMXfppVkr8KgPOcsAwo2w2D9KIM3AqkJdpQS50HfXYfEPymwIsp1/Z6OUxOABGfOqw2JgIszmmiDlDkHbN8ZvViiDJzTErhIYgjNjFE/zCAP8XpPP+yqVkme9FJdlX5qwy40ZcNvEhPV8FJQUbs1cARxsMQ==; 31:IWTbna7FMc14mMihlhG/8OwWEDwFOCGehqscSk/lxVjmfcjSwok9q6D1tW0APWn5iKiXPjUaSiNIXrWSrz0p/CE636pa8ihiQISAq29rLYQceB1sJyS9/rITPQJOOjYgTFLg3iHiWYrM2nj/sHZwcsBwYuqcGAr8JNdA+FOQuIHUN09egLxufPg1uiKndZz2urZId8dIawns9peHAk4oRxt11omVvqKMpfawqI/6ax0= X-MS-TrafficTypeDiagnostic: SN6PR07MB5007: X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5007; 20:jJ1NbNEKA9WCf44x+o4baAvEk8ky9TFSKn7LYAmwp0S2PxmsYPL91jqZDkUhMBYVXGx3A93Jg0XpPKY3drLk2szK0FAiICiBsuQ4Xznsh0SdV4AgRDdULY6bjjPiQXc7wP/DxyqbVuZG78H3ZgAQVWGbm05o0s2h3sIvN2swLkvZaaSO79WnhlJn2rfjMgvaCivtShwfPVqE61jSndBmjamS6fHu0UWvi/xuiFEcXgBiwQgKTijHJhR3V5ZnIzBcpH+gwnvwkWoyO6Dzv8Ae+hmvRd2XP80qo2HZHDRFvZMDfEd6amVHR6VfdWx6C4nrqlCo0nomg6p2Iw8w63Iauyu5YxJu5fl3R2aHm49yScDcKnEyI2nLrvWrSLbgFzyJ9cG8LlBjUmP4YXndFZVA8EECUsUbugoLAAj4g9bR02OV9BG0doY9BPTqiFqASHF9628J7YIIWfXVa5vReU1hT4BI0k53yWirBvEA4JjW225hsMmriOUmDzjt4t3qk7MbILSVczYG7YA4au6UDkMguBGfoxlg585d75L01c2IBT6GhOv32W6W7y6wXjILS6VgPZh9fPacInFktsVgt7YoeJGjiNF35r+RIdqKYB07i8o=; 4:9Mc6/vBZzfdejnlUpINDl5XfyKl5qMzSEcTvmd/dpbTaWGzkrPMDc8SdW/rwIuHhhhxsu5UVt3491414qb+pzbd/anuCGgh6TGcl6Bf0aWsa8QbhDuil0ztBmgDWRW8bgwNqsldCMNCMABCxpd1yOitWLzzuJlrXqysRAeoqRmgnLiX/bw5Y/87PIj4Pkb2VLx4WJ0rbHlk17LFLrex1Yl+0/Lm7pyrS1pp20Wwv31ghHmD6lbnhuTUXpi4Bp+eQoIa1Kb3KZ4lcz64wC/NhWg== 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)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(10201501046)(3002001)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699051); SRVR:SN6PR07MB5007; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB5007; X-Forefront-PRVS: 0816F1D86E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(366004)(376002)(396003)(136003)(39850400004)(199004)(189003)(47776003)(16526019)(2870700001)(6306002)(6512007)(6486002)(4326008)(36756003)(6506007)(25786009)(44832011)(51416003)(52116002)(386003)(186003)(52396003)(53936002)(1857600001)(97736004)(486006)(46003)(476003)(42882007)(50226002)(81166006)(305945005)(7736002)(69590400006)(316002)(8936002)(72206003)(2616005)(966005)(5660300001)(478600001)(81156014)(105586002)(8676002)(14444005)(110136005)(1076002)(68736007)(6666003)(48376002)(106356001)(2906002)(50466002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB5007; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR07MB5007; 23:NvmH9o06s6dvhOf9p34geBhvyTx4PXwDkghsKjBWp?= =?us-ascii?Q?mNGlurqviCC3ZIdj+t+TGLVVEdTkzuOZkNHmeq57PTvJwOTDXmON8O8YZl3S?= =?us-ascii?Q?K2s6XgvFDKGgTTRTzne8ERNF9GESSh6oO6L/017txblJmx8RUKLTKwWFlJK4?= =?us-ascii?Q?S0ZIJKGfIP1mojnUejJ8qnayX64P8pXy1/KkNzQKgN1xAVdCSDOGmk3Pl9yG?= =?us-ascii?Q?UobwDqNiN0xirb6Ehy90QpmCf3+M+VKPnzvN2AKIW9kN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; 5:E06ruJ0VnjUrmFRjyzc9ktN4yxhycflQM/TMxlrwvI3OTp4gFT9l9ERg7LTFaEAQCXd9yvrrIlSKdwDY6T339xq4x3nlVPb9nukALWrOlPLnQOKVuB5ByywTEm8ep2jSo24DveTds4uI6Wnk9710nYbi2yyhSjeKSd0I3xESQ5M=; 7:R0WozA12/digZWJYYqSZwRRDCfx/cDYtp9KVcf8QZYjAW/3+S3XmMO70kruOUusBY71+b3yHEA0lz7z4JJJLYKxTu3tHkKzm49QAvoKutUEopX6D1HZybDHZQxsH6erYdQE8F3r6sb/0BowXa1Jq8XjZITgnPxfdhmmP2auPKXiBKVaOKN2r71jo0zBOkkOj4tfkprqNEwzIf2SoUoK0ICoWlKkzp+XFHGzb23D56W3V2zjJ0MeCWucdjHE5raz2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2018 04:46:50.4681 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0598013-4db0-4ada-0b59-08d62a7d9427 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB5007 Subject: [dpdk-dev] [PATCH 1/2] doc: clarify L3 Tx checksum prerequisite 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: Fri, 05 Oct 2018 04:46:59 -0000 Based on PKT_TX_IP_CKSUM definition the user needs to fill l2_len and l3_len mbuf fields before issuing HW Tx checksum request. Fixes: dad1ec72a377 ("doc: document NIC features") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob --- See PKT_TX_IP_CKSUM at https://git.dpdk.org/dpdk/tree/lib/librte_mbuf/rte_mbuf.h#n283 --- doc/guides/nics/features.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst index b085bda86..e726a6bb8 100644 --- a/doc/guides/nics/features.rst +++ b/doc/guides/nics/features.rst @@ -562,6 +562,7 @@ Supports L3 checksum offload. * **[uses] rte_eth_txconf,rte_eth_txmode**: ``offloads:DEV_TX_OFFLOAD_IPV4_CKSUM``. * **[uses] mbuf**: ``mbuf.ol_flags:PKT_TX_IP_CKSUM``, ``mbuf.ol_flags:PKT_TX_IPV4`` | ``PKT_TX_IPV6``. +* **[uses] mbuf**: ``mbuf.l2_len``, ``mbuf.l3_len``. * **[provides] mbuf**: ``mbuf.ol_flags:PKT_RX_IP_CKSUM_UNKNOWN`` | ``PKT_RX_IP_CKSUM_BAD`` | ``PKT_RX_IP_CKSUM_GOOD`` | ``PKT_RX_IP_CKSUM_NONE``. -- 2.19.0