From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03hn0219.outbound.protection.outlook.com [104.47.9.219]) by dpdk.org (Postfix) with ESMTP id 8C6742C8 for ; Sun, 22 Apr 2018 13:30:36 +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=EfhEPD+mKSiHn1E5nS1XIVHiQeV6KpWNmiTuXGA9eWE=; b=h8SGwrARmB08MhWxN6Qg86VTADhw8Ku1FfrBa9bW3qFhMcvSCUT4ay98tQMoDJTSY4/bJnepb1LsNCjm91pj09csoO+wRpXLuCFDYVXHf+s+K147F5NLvwP66GC4WholNdqL7JT57wlx4lWAfKPYprSnQ6X2nZ6ZnmagyrN7mqk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ophirmu@mellanox.com; Received: from mellanox.com (37.142.13.130) by DB6PR0501MB2311.eurprd05.prod.outlook.com (2603:10a6:4:4c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Sun, 22 Apr 2018 11:30:25 +0000 From: Ophir Munk To: dev@dpdk.org, Pascal Mazon Cc: Thomas Monjalon , Olga Shern , Ophir Munk Date: Sun, 22 Apr 2018 11:30:09 +0000 Message-Id: <1524396611-22391-1-git-send-email-ophirmu@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1523313192-18048-3-git-send-email-ophirmu@mellanox.com> References: <1523313192-18048-3-git-send-email-ophirmu@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1PR07CA0022.eurprd07.prod.outlook.com (2603:10a6:7:67::32) To DB6PR0501MB2311.eurprd05.prod.outlook.com (2603:10a6:4:4c::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB6PR0501MB2311; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2311; 3:vz9dfgTzEYwG2bW96JeKiWCjmvs1qXbis0v08VhA7M6DZ0PBGpTRT4j16KPiMlps1xLnq54indQLZTDAFBBPYwkegCAPnmuR9W70fTOszVpD+DRZEmrhnx0BtPmm+lhHbCyKLF/4JknBL/bbgVnFpjtpy+1nFsPQYWeTVfX5tsAdqzAEhAKZvknFTXgQ0oS7BelJsSU2aJ9Rs9m9YbrBZkAr44Ag18lXttZGsFM0WTIYzBWCUk/rS8UsdKJ+bYT+; 25:YKcysvTlyNCgewmZMQLnBdZH1NbtVMwmkZ5ojNsJ57UXH/JZQqtqiu/aJGRV48RE2MY6kBVyPzF2uIVo3Ow0cGBZ1+SpZq6fPZeBCywjbllap9+BfOmmnsMfEUiFyxCdq+adi3H418fZxm+8fjTQPJeP0qYMonNOArMqb3HDgVwOwaRsmECUP/PQCCkQLTFFcmrzgWdqEoDs81GYQ/ayWEPyEkQ2HoepX5AU8NCJ3lx3Row8YFKl4W6XU2oWyjqNGMn+l5N3JQBa34rGN4jMkzOriei7E/oabx7PAHdPqNMxVVsoIfsA4zMA4RRbW2+St7soqivrbEE5R3pekfVatA==; 31:q6rcWzViYyv8+s5gaBjb4X2k7l9+8bR2sweiVc3HkGK02b3xAERWQ9ROrywKacOXuxDh2WaiSj3KLzSAWzF4VwgFqzBR077tMR2ZajKBa+GI4Lgu25TAsyd5sjqnXbqSKRH6xWLf/ZfQM0cbi1DLj0buH+gftyTHuG50WEubbTpmQLZm2Y3xv2jctopse2J0Q+9pvhTDKCCjkfvxyWbcUHMz9ToxyDBz0/fQWst6rG0= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2311:|DB6PR0501MB2311: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2311; 20:hK0XoLFTL2FcXnVAQAY2DCLn03Cc0q9eGqV1feVtTFTqCMzNlcvCnEzSsx/8cfocVA6ga4djDfHmmtczgf2ejzzRB8sS3rCN2KhZeSl8ZwAh3JIZIBPtBFhyqNK+mrhvViATSCYGAIbQTfqWmhb/qo9Ey9LQSIk/ecbefRcYaAERUh/f+0r7Sjte4xE334RIt5GeUqghW7XrT+oXxLgh4PsWzIiruQm4ayguz1YIXKUQjUyfuFsq+3/Ch/bQ+I8u00U1MLwkY0ZkT5U4rVhvLzbmHX0Og4WZbW5YgdmT0/HcHWa2sdfZgkGQDAILS0lgLJH0O321RhJEFasOSZgzvdp2SBXFbH2iePUzjFaLzozdR2ZhlqRFBzVxA4olKEIMOsZ4SsmhZksOiMgLoAdeoJ/FQjUxMwNC4zTtGaIJ3IjWv5eRGzAv676iESZofERcECXj+7X9wFzrHNym510sB5fER+HcZ2CjPFawGxCfVmZz3Y3+Lz1RYj04IOFF3pCM; 4:6QDezvgmSiVtOUBehnuoYq3bkEBT0ZvA+D/DMjnAUXPjLfVhfm0Afcvtr2wcsT0n1iba4yY8TK0oOuD1NdZqXk8Qi8U4t/INdwJU6Aa+xfhDJWut2UK0h2MVKF5h8Zv8AKZGis1v+KHAej3cq9yYeJwDMjDiFcg7YXig2POMJrI0o7C/fKIazT13EPt2SgoodTTfi+hRF3jrikdlKKZopiIaThTUku55OuffVCwYKlGQkgMsM9WSEDnP7z8DP1sEZFZSu4xfTVp+3WqHBtbxK2n4/0QHtGbveV708NgbaIeH0in92XpCPH6MK7IpDhC/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(66839620246622); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231232)(2232076)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:DB6PR0501MB2311; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2311; X-Forefront-PRVS: 0650714AAA X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(39380400002)(39860400002)(366004)(396003)(376002)(346002)(305945005)(446003)(50226002)(16586007)(48376002)(54906003)(316002)(66066001)(47776003)(5660300001)(50466002)(26005)(478600001)(86362001)(186003)(36756003)(6916009)(8676002)(16526019)(6666003)(81166006)(4720700003)(25786009)(11346002)(55016002)(53936002)(7696005)(2906002)(21086003)(3846002)(8936002)(7736002)(2616005)(4326008)(76176011)(52116002)(107886003)(33026002)(6116002)(386003)(956004)(51416003)(476003)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:DB6PR0501MB2311; H:mellanox.com; FPR:; SPF:None; LANG:en; MLV:ovr; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2311; 23:Jg/93V2w6Ht1zrMPEtpdYqc0eorc7L0RJ00en2J?= =?us-ascii?Q?MJ+oTRDl2KF5KjGoHXPKJffSgAHDHnu7xt+HBdiblvIFGPFeYUkTaDiJGHb8?= =?us-ascii?Q?ICnGiNaabbNKynHG00pieynmhNkbTcMsczxArJdZFc7h/DCpITCt9tO9mSVJ?= =?us-ascii?Q?A/66D2lsocYwo+Y1sQGFeculUYbjTvIctLFWgtAecAZSGkOfdxlJ3Xp1sgGz?= =?us-ascii?Q?4ZOOb8hVtYYcGVNi9Y6vL4Lx8BWBL4tpWWqdAiEM7682zcYcn8AlwdfH41Xm?= =?us-ascii?Q?fTEAWVewCty97hRCW2a+nXlMWOYYY/nDGpuUHcjkVyJGTLHqJ32JHgSJldWt?= =?us-ascii?Q?Ltvxkr+YPHI6L2sOcPqq+ju2VVJNCANs/GNy1M5T5j9XnSatw7deTty10o2g?= =?us-ascii?Q?3HixeY8Ftyxgc99XLH4VlTlku0283Sgfzpf10WtKZSu+6QHbL24ZL9Gp4rmy?= =?us-ascii?Q?v2i1Nr4lDd4BD8rAb3nA9DQhNJ2I1osv0bzNHaRBuCKHy2jGuvFlv9KSlxc4?= =?us-ascii?Q?3aG5EV3qLpjGok+fZqmE785hwe+sJXCvGUZFVKZN6oolkS/YOXRTjx13YHlT?= =?us-ascii?Q?E0BpGQFoQ4ybKFc6W6pQnT07sH8yy1u4LLHEaJlS2mQ8lvrFg34XuUs4rnGI?= =?us-ascii?Q?myO3o6j4UeS4FpLlnVrtloa5USajqcJefrAC0DvriXGAjl5vzCnl0Sic70kV?= =?us-ascii?Q?Q4O6IxxZLdRiIYbhrPpad7kAI7n+5DpgCYji6Zs3ULpV9ByZB/Z75ZZOXuhQ?= =?us-ascii?Q?LJxFo15Ay/b37iwd/PGmg/+wjnJ0/Aj3Qr+sb2AaSMc7NbsRr03722wZxf/7?= =?us-ascii?Q?Lgeb13CiKOY2qVcx23TrMK2gZb23lDarolEzu9/rMqlFO1pf2wbca0pYw4c4?= =?us-ascii?Q?twf1TxGe9AVPxpsWWn29hC+4okO4TT16NHEZrjJizqzB8FlOooiLo5vKWO9G?= =?us-ascii?Q?KQ3WRKkF+jIjG4kIh+uglK4LU5u41O1g0Z68UnzytMjxmBGG0cY+U7ArTz6j?= =?us-ascii?Q?rN7T9IdwXkvCVq58ye+ekqNmBzNS+p+6XWntgSBFDO15pR6GBJU2/Y5TFpp3?= =?us-ascii?Q?GbijZDmyaANfx9VScL5Rczad+q4XaKuBRYlJsXtZ5+YGq3RKtOirqOgiG91j?= =?us-ascii?Q?Hd69zpp62rUqj1Nn/2K4DF0oAMx4STFDVJfj9A6jq87RbR4fuu4cWSiHtofW?= =?us-ascii?Q?amU6D6ZBFv4FccdA=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2311; 23:wg159tFFCX5R+mxTDQLW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nb8PbejguCyzryQumYkc08Q0g51zpwJP3ZhhuH3ibBgPVH48771OuMjIZkTRihSEmKpfucz8C9HB4za0Jd5iFPt8qtxB8eiRV7Odi4HLx2R29vgEtQs0YRv3K+qnrx7rxHGZNwgKuzSNBTx3k4QNMl8koO/lo2aLcJ+u4oxQx4sexWrmNPu87mW+SbG6tuW4NgYcdqGyJn9xHWhEvCCuRVrQR7FgaBfpheDPfIkT2I/+tsyZyFnO1gtiQu87gfkgWOyDdyM+hWybnrgdnnisFt9AnY7GDv5hR7D9f1vmcFE0o= SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2311; 7:Qpc4ureXTk9Ny9W+s4AGReiBePlYuLjR+S5ypxqt8NO8g/GZznh9b25Zdp5StRda52pRZgIEFm1h45h7a6KatnuhSjFwr2R6zHI4bL4ZNI4/npMeXbvdhfL7kmXy3OMbndJBqxjaN7ow8jWGzwiXLBgTzfRuTG/x6g5lE7U2Ei00sleC9kXo1HosOcYKAzLZkoKQQCjSENBHB4nYq7WB4AMpzFEAQPZLQtxGFtNek837n+nm/CfyEixEiPQaHnDC X-MS-Office365-Filtering-Correlation-Id: 546e2166-5873-4221-c282-08d5a844722a X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2018 11:30:25.7409 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 546e2166-5873-4221-c282-08d5a844722a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2311 Subject: [dpdk-dev] [PATCH v2 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: Sun, 22 Apr 2018 11:30:36 -0000 v1: - Initial release v2: - Fixing cksum errors - TCP segment size refers to TCP payload size (not including l2,l3,l4 headers) 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 | 305 ++++++++++++++++++++++++++++++++---------- drivers/net/tap/rte_eth_tap.h | 4 + mk/rte.app.mk | 4 +- 4 files changed, 239 insertions(+), 76 deletions(-) -- 2.7.4