From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0047.outbound.protection.outlook.com [104.47.1.47]) by dpdk.org (Postfix) with ESMTP id 8B18E5F1D for ; Fri, 9 Mar 2018 22:10:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=24kAFz49j0p2SRvn0ygRtqlHiQeqfnthap4Ge1JQ9vw=; b=haRqkGsApzokkpnlKV6BetwbyLFYC8jfFOxc8E9RJWJ24eGUYVbRwrgtLhEYvi0+WVRSf9EZc/N0VzFTDiiGe3fxoa7PhH5yi7UlJDkB3mtVwRl0DV1cChOgNQXWUTCTuiRPouHCtKxE0qGSG6GwKfomDbGKwJV6LrlztO0YZzM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ophirmu@mellanox.com; Received: from mellanox.com (37.142.13.130) by HE1PR0502MB3883.eurprd05.prod.outlook.com (2603:10a6:7:87::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Fri, 9 Mar 2018 21:10:46 +0000 From: Ophir Munk To: dev@dpdk.org, Pascal Mazon Cc: Thomas Monjalon , Olga Shern , Ophir Munk Date: Fri, 9 Mar 2018 21:10:24 +0000 Message-Id: <1520629826-23055-1-git-send-email-ophirmu@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR07CA0199.eurprd07.prod.outlook.com (2603:10a6:802:3f::23) To HE1PR0502MB3883.eurprd05.prod.outlook.com (2603:10a6:7:87::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 66df21a5-cf47-43d6-ca4b-08d586023ade X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0502MB3883; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3883; 3:PrARFGQ2C2jjvDk6RKZ/C1/8EEcvSmrIO0gVf+Ah0b4+zXVAvw4wA9kE2U7FhWIEC+H7uBW4OShq96P18kBugV96HGOAlws4VcP9zovETpVhcLna7pkiSYZfWunM2nPipRvT1tQ7N68un1COEAL0lZUCZCGhvkKwZQoFSAY6L95ADwRZQu51UjVHY+oQ2/FgF++tjrdjp6+llfvBP3GRrpzqw8Sc+x5s1VAijl6C9rq4BDLGrgMb1vW7toi9pM/l; 25:O5HhavdGX9NSrSCxlhceoMZ68uVlxXbHEn+iH9iBDN1oP57HAW9Ca4ucnfu54k+Pq6MepF5+QpZwstNgcKDbpWIG8ifDKP6BKW0nj7vJSjsGxs5V3hriUW7D8DDxk+RZgP+LSAUbCZtjGbj7Vjo5Ppk02XkYOhUrmWqLO+NP23sqeljLygEvt7GGU+MLyMe1rl2NVPzH8M/Dn5z1zW9rBV2dh619jGEpILUOVSGTSwLFMRf/aP7des7RFiC7RnnF787VbgqIk6rtEB79yT59ibOrOnm+xCzFwUI40hhHOBlxGrQbPLcTB9QqJ51iisa3EAZBItkODxxnUV0EJLpT1g==; 31:IfN+n22FgjUNUTALbNLHkxzTTWMwG7ZqGapV4wwHECjomWm5NzYZT8i5Ud1oYuYQfUISmdR0fTSJG6Xpi5c4vO2r1WixV0QfRxS1FiYamZ0OZjDWfUFUfi/pSyW51bIigXdEXJ5ibbP2JNWwYqT7Yf+9OZmIZClAoOzttZv+1rnpwKStDs6V0+VzEDEiIkX8jz4onNWF/JJn2UPhrxSEW2QFhhog1cUgjfVqQrPjQ4s= X-MS-TrafficTypeDiagnostic: HE1PR0502MB3883: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3883; 20:r0yvT+AjUaMfJQ/gI89xGqtgDPviao7XR8OXvf6bgxNLHQXD3lZXtBzZh2yxLZldSIx/jfK9ckyxcrl/ozXS8gWZh+7pOrxeqObvB/qGttZH7bwU/89X3Pa/84bUdcK/RP7tFVDeELL8gqa3pzCjHN5HLJHMkYVdQXmW8kzKyuwXfrTYDcZ9HKXqv3sCPcyJkvXNGzZOBnxMBoAnkjcV8q9ZVW9mWK6+3ziBpn5ZRIbrhILngdcJNP+qwvqHARwpvmUTrJjzHY8j7BJcc0gYSc+hWeqp8nRswU/rvlpm/+xdJqxsG9t+j9DXijoPZxW6lpRTfiMSgLcAP5EDQpBpq6DrmguP7w5PvBpqx8p3sP7zm7oPQkWOjQs/OfwnYEbyS2ljlRMr8jBI87corYD1f0qy+DfoiksNHZYZozzsR7i8PcuKdN2jea3K61smkrdKvYwgUB7Sn8ZxEsWyzzpNhkd8UYds1rjAbrNRp40uyElSeZA4HHP/A+0kGqSRVQ7L; 4:KE2BQCIwvpE8uixxjxkX2jsIH0B96sS7+fUj+iPsMMOF31yT4c6X3xR1w+kj0m40kWdSDZsFTZE6IOW76SJhj7MNIL+dNqO2PbgDYGZkJVxIBVIwUsbo1F/BfRXe8vJVl3MKPX/UqZPbCzum13BT2ijNBEu/KWwe3sFTOVNkIOdIFUP8deOKp783mXtbHlOXvRQhH9l+XTZi4+si8yun2Txzmbv5Ww2eml6PvVwpCxbUua+fantuwMcz19sDVtH76RhKhXTRQGnmaoaB7SrwnA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231220)(944501244)(52105095)(6055026)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0502MB3883; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0502MB3883; X-Forefront-PRVS: 0606BBEB39 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(376002)(396003)(346002)(39380400002)(189003)(199004)(7736002)(4326008)(16586007)(3846002)(25786009)(50226002)(106356001)(21086003)(2906002)(36756003)(86362001)(48376002)(16526019)(186003)(54906003)(50466002)(5660300001)(6116002)(53936002)(6666003)(478600001)(26005)(6916009)(68736007)(97736004)(305945005)(105586002)(107886003)(66066001)(81156014)(4720700003)(8676002)(52116002)(7696005)(51416003)(81166006)(47776003)(386003)(316002)(69596002)(8936002)(55016002)(33026002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0502MB3883; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0502MB3883; 23:KNTNDJqgr5I9pvMMPRQaRQj+n5rm/ive3FvistI?= =?us-ascii?Q?bbEac1FGW1tu+vSdsBXKQLQzc75HBSYIv6e0tthW1I5AHBmJgB5hS2L7PKvp?= =?us-ascii?Q?sneXZGhbYt3cWHu2uXsHyLZzvNe+Yxoq0jIUptGMyiq7h0GydOg4YXg3I+7E?= =?us-ascii?Q?LgmvYyWRP5HxOAljKOLZhS9CuyU0HYdDOzo+7XwfIClA5aWYfwMH8Yu3+DdQ?= =?us-ascii?Q?SrLbFESMyFmRupbo6ttXJuDWG3DvyU6thO5HhcfOqwJgKvwYdNfU4K8xuieK?= =?us-ascii?Q?r1lXVyLsXxjCHprMv5DnCOz7YlskxFatjRjtJ7z+coM4Hrsjib22ZxMxXoK+?= =?us-ascii?Q?XGKfWs9A1j+gKjAo3BGDIYYc3kdXCCrWFAlLHfjMBNT+zlAlkEsilNLUVRiu?= =?us-ascii?Q?c+izxkN6ScdMpvkZz1gw1MJK9lN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amDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2018 21:10:46.7591 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 66df21a5-cf47-43d6-ca4b-08d586023ade X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0502MB3883 Subject: [dpdk-dev] [RFC 0/2] TAP TSO Implementation 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, 09 Mar 2018 21:10:52 -0000 This RFC suggests TAP TSO (TSP segmentation offload) implementation in SW. It uses dpdk library rte_gso which is also used by testpmd. Dpdk rte_gso library segments large TCP payloads (e.g. 64K bytes) into smaller MTU size buffers. By supporting TSO offload capability in software a TAP device can be used as a failsafe sub device and be paired with another PCI device which supports TSO capability in HW. This RFC includes 2 commits: 1. Calculation of IP/TCP/UDP checksums for multi segments packets. Previously checksum offload was skipped if the number of packet segments was greater than 1. This commit removes this limitation. It is required before supporting TAP TSO since the generated small TCP packets may be composed by themselves by more than one segment. 2. Core TAP TSO implementation: calling rte_gso_segment() segments large TCP packets. To be added: creation of a small private mbuf pool in TAP required by librte_gso. The number of buffers will be 64 - each of 128 bytes length. Ophir Munk (2): net/tap: calculate checksum for multi segs packets net/tap: implement TAP TSO drivers/net/tap/Makefile | 2 +- drivers/net/tap/rte_eth_tap.c | 183 +++++++++++++++++++++++++++++++++--------- drivers/net/tap/rte_eth_tap.h | 4 + 3 files changed, 150 insertions(+), 39 deletions(-) -- 2.7.4