From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01hn0239.outbound.protection.outlook.com [104.47.1.239]) by dpdk.org (Postfix) with ESMTP id 005792C6A for ; Mon, 7 May 2018 23:54:46 +0200 (CEST) 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=SJPgAvYDiEIMPva2WYKWIHXkob6XAjYZm2JbD7XNGGQ=; b=mRWBdN0QS4NUzlMfrfVR1jxvSRg/vj9wEGPjAlZlF2JSapc/6+jMaZxrz9uZpaggCURnownfF16KD+h4rzrwzxuR5AXHg1fKfk0OiwBFa2r9PepmsjiyShhH25tqV6oGjsKAdPhhOUqryUHUi03WlNfHc/X2vU6PjOq1jfk7fRk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ophirmu@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR0501MB2320.eurprd05.prod.outlook.com (2603:10a6:800:2c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.18; Mon, 7 May 2018 21:54:34 +0000 From: Ophir Munk To: dev@dpdk.org, Pascal Mazon Cc: Thomas Monjalon , Olga Shern , Ophir Munk Date: Mon, 7 May 2018 21:54:21 +0000 Message-Id: <1525730063-28366-1-git-send-email-ophirmu@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1524396611-22391-2-git-send-email-ophirmu@mellanox.com> References: <1524396611-22391-2-git-send-email-ophirmu@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1P194CA0041.EURP194.PROD.OUTLOOK.COM (2603:10a6:803:3c::30) To VI1PR0501MB2320.eurprd05.prod.outlook.com (2603:10a6:800:2c::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2320; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2320; 3:fjIj/voLCFBH/mW49YjV9n/Yrrp21h+F0chBQrHrDqEUpHn6NIuQucNN7CazJOEEWgnkCUV09vvzD4A42NA6FWdWTVwaSoPIkwk83chMT41ZaLDOag6YOkzigYiMPLmsRWXRPRzJCZ7AL+D/YKt2Jrm4aJL9WdLDtcDV2tjlrNr53KQewarIuMyN1hkQ0WsYxcHL+IFT831TlaqHrvzMv4TCoBic6LcnMTi3ji7jnGrVrpYckJ3tGX5DjNJCuIY8; 25:QxWvRMYCy5pNZVlO5b9wRVxq7R4I9iDolfuApqZTwIRzlp+2zpChohOx0lG/dq94hm0dpKRxtKjsoRb/6ucKL4AODSuUhFbUERXRBxrPc24tP6AELSrog6bzoQ7lgcnlfnVDOGGvlOd2JHadWvTJwID4jd1/7dml30cGjNq5C/8RlAbifki+JqzmePBEVrewE4EncUZyE0KvGAx1mMAVK8/mq50al/U6+C+T12ATyrkPEcLApb8E9VKyflQJUlzfUlqFD4v9Gw1cSmK6KKZsN8XQBU5kE85ZYxoMEIURe7lNq2gmFWvpInokopByQnveYmBufXlRzfIvULzwCSIJbA==; 31:AKMUPhWffNK80YdVvYU2Q/511vf23Kz7VHlHg5Fi1GJKv3dvbUxOrHHz+r0jh8nmYStw6e9Wds+3OmSaXRNiYQ9Z0MCNGCiPX/YaoRqmWIqtidQuAboPhuZlcgrL3PtWCagUEAmmy9X783sZ1uaq/06U6BLj9SaPDxN/XA7LOFCiKwql50sD4IwOyVJl1BZfnx4BroH2qOS+Jh+CelfxA1FUICdG2rImLWlnpLbslws= X-MS-TrafficTypeDiagnostic: VI1PR0501MB2320:|VI1PR0501MB2320: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2320; 20:JCIi5AKFBgVAuY6fR1j53XT4tKCqhWPYtFSlT/wvdff1yAi+gWYbjTfglDUySX2+bUOS00wAJ2SR0tdgCpO0ttFeE97XV0YQ/0AucYJ+/NLFebHNMAKwkA+OwS19LFsBYd3Lixgj7BqbJymg2lsTS3j8nt/Lq7WJA/ZylV3UxtuWSOwl/VEogOo9BCzAEqh375CYIRkn6AVl9likChxQ7QJ9cyK96pkLXdj+pvTW61i6/UwTGrhjmd3zoV2oPV9lIScqIj+h8qC+RxpboebZPbCZ9ybCrPaVfVxl+deyO03jq1vks/DslAXSmPKcKSgJ2nU/5qdgDCg6/t2JvrJA2S6nXQOrotgAS34IQVoz8V1zk/MHc31WpYQ6cZ69VxdLA/hRUgD7Vj/t+2D6iojJo7rnrVBIr5qubXkrRW5dp80gZYxHzmKoJRM418B2sns7yJkRSKTFZ0s2j70+DQFti3/QckVp6jIPST8M3LHX0EanePNVw3wjmq/ZgDG5Eiqm; 4:Z36HUgxZQZEPkW0Bxi5JK8jSK658FZoNb9l/T6Q2oDaens3n+62cWg2iqE5sDyVU6W4pbW5lzdhXY3ukibB2f4NAvl/GVIfFQ3lt+5zNH884NNnrxDQEr73rScBoRqq/s0nYBcDBz8LOtVW4ZibXPnbKSWazITg7J1H+1Puk2cqBxogbaoiW6jyaERFE4xJULopWNLRtoojC5G8lpkegjkPJMsF1yDAutueVdFTXZbUJgeKnVvHgiHmKuR4RsZ77ILbseXioYRbA+MA87BAvIMbMbrmI2bgLOFlAMbWEyatJdIEpHhTJWwpM+JuJF8tx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(66839620246622); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(2232076)(944501410)(52105095)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:VI1PR0501MB2320; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2320; X-Forefront-PRVS: 066517B35B X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(39860400002)(396003)(346002)(376002)(39380400002)(366004)(199004)(189003)(4720700003)(97736004)(6916009)(81166006)(6666003)(7736002)(106356001)(8676002)(81156014)(305945005)(105586002)(5660300001)(54906003)(16586007)(21086003)(8936002)(316002)(33026002)(3846002)(478600001)(2906002)(6116002)(50226002)(48376002)(2616005)(36756003)(50466002)(51416003)(7696005)(52116002)(76176011)(4326008)(47776003)(86362001)(107886003)(486006)(386003)(476003)(956004)(446003)(69596002)(11346002)(66066001)(68736007)(53936002)(26005)(186003)(25786009)(55016002)(16526019)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:VI1PR0501MB2320; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0501MB2320; 23:srPd9U+IJyeteuo5/Aj3AxLya0MZDuYOOGopzhB?= =?us-ascii?Q?2yeosDRU7TS3vEOiJF3uGhm8ZoOZ/elbS713nwVybJYmUIWZoWqwAUH1QZW3?= =?us-ascii?Q?Gepi1czWg6+Y/uhCLGq34TdL6EzfIYNI08Gvtl91Lpg8VFrfYG7JwCIuHCuX?= =?us-ascii?Q?39tnViB6+m7LVPmxIeifP5/qRf4EH25Xf52cfEd0FRXzYQ/Q5EqDls2ww56b?= =?us-ascii?Q?QwnCtV9dk0URgn0doydrzN9ZIsfwb8ntyfNw4kuYMjKBxCCv3Btz96M9kaA1?= =?us-ascii?Q?Xf/jVlN/Zzx2v1c6xJ2XjH7sQYhi5jpJthATE6Xxss3VGv8BHYoeneK3xovX?= =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qm4QI= X-Microsoft-Antispam-Message-Info: njLnhhP8qtMt9E7X0dk/kPYAZC7X7J28618zqmlmLlOBsrio2Z+iHjBiHPCUms5Tl9muewCI1QQSqutgpsHsy0LHBhmHSDO3krJhe4w4BPDqRiOvH5MvYWGfTwbqrQv/3qJDymfyswVb12ORwR4XN/etL5zFjUcrRjOq3lxwX3c8oAUe3dhIvewFSFddNuhVCibBpd3/Z1SpFGDtWdGO9j7s6/iXuD8TV+IRkR6SbAope1HYbIWZ/wiMNCa5GLzl3eNDSsjAFCMafddvXYmL56gCHXec7Bbrc0nBW2bVN1W7Z7kFWKy6uEppHygsu+XKybJdDJFmxmMR+n24vBDplv6xDt2lb5caX+OzvvWJvND5gDI1eA1HvjUr31mYYtIZksh/dmDVTh4aVA1G7R3xnnWt9+NwyV5rnJF03XY77B//NHCxVg2bJMO1BvPgME1kUz0hkkqHnb05jkH7ajbEaUqVjDZFTx8Oczl4aITx2xJZwprPFgrsAYg7jqysdVcWqkplRlh3/Z2676UIGDSnPKVhMpHvblsiJBH9GTSuchg= SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2320; 7:uupglXn9QKHgfnOkCHirgL+fyAVPXBnZolPZQ4ZRaMTZWeaQLSKSQD+h30KwmPFWGlP9tQTtwRyWewJZpsmAQWlJYXbHCyP7BEQN/xk25+EYtIEkpeSck6J+BvU1/sRJuqj4PoYS+02rT6IWm3VMFery9Ab1pmropWDS8ACJ9YVe7h8FMsyAPECJjqHB1eD0JZYfBf+rXACUNOIwaSfiOszPaX4Si936yDsRaCGy0XZ6yLaVXAlDXTWDbPTkR5bj X-MS-Office365-Filtering-Correlation-Id: 58605d38-909d-44bd-a49b-08d5b4651f24 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2018 21:54:34.1390 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58605d38-909d-44bd-a49b-08d5b4651f24 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2320 Subject: [dpdk-dev] [PATCH v3 0/2] TAP TSO 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: Mon, 07 May 2018 21:54:47 -0000 v1: - Initial release v2: - Fixing cksum errors - TCP segment size refers to TCP payload size (not including l2,l3,l4 headers) v3: - Bug fixing in case input mbuf is segmented - Following review comments by Raslan Darawsha This patch implements TAP TSO (TSP segmentation offload) in SW. It uses dpdk library librte_gso. Dpdk librte_gso library segments large TCP payloads (e.g. 64K bytes) into smaller 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 patch 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 TCP TSO may be composed of two segments where the first segment includes l2,l3,l4 headers. 2. TAP TSO implementation: calling rte_gso_segment() to segment large TCP packets. This commits creates of a small private mbuf pool in TAP PMD required by librte_gso. The number of buffers will be 64 - each of 128 bytes length. TSO segments size refers to TCP payload size (not including l2,l3,l4 headers) librte_gso supports TCP segmentation above IPv4 Ophir Munk (2): net/tap: calculate checksums of multi segs packets net/tap: support TSO (TCP Segment Offload) drivers/net/tap/Makefile | 2 +- drivers/net/tap/rte_eth_tap.c | 308 ++++++++++++++++++++++++++++++++---------- drivers/net/tap/rte_eth_tap.h | 4 + mk/rte.app.mk | 4 +- 4 files changed, 243 insertions(+), 75 deletions(-) -- 2.7.4