From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0084.outbound.protection.outlook.com [104.47.37.84]) by dpdk.org (Postfix) with ESMTP id A72AB7D5A for ; Fri, 25 Aug 2017 12:31:51 +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; bh=29ewCon5M3NxA0Yu+lLMn8fpNvT1obfU9pKmgBmvLN4=; b=FTXwslu4gKcHSjctAmmkXC2YEiEsDPCL5FVOi4jL5dmNBkm2eI7FtlxGbFxH7uTUOccLfxSbnz/u4LR07mM8Mf5Pi36T0XmmQ+h7z0sHg1PO9JdVWfn25opuf+jiJtiU5w+wn1IaU6QG/pvsmswmkNd9AtBaU0EOvR68oFSVjc4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (213.186.78.165) by SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9; Fri, 25 Aug 2017 10:31:48 +0000 Date: Fri, 25 Aug 2017 16:01:37 +0530 From: Jerin Jacob To: Shahaf Shuler Cc: dev@dpdk.org Message-ID: <20170825103136.GD9774@jerin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [213.186.78.165] X-ClientProxiedBy: HE1PR0202CA0014.eurprd02.prod.outlook.com (2603:10a6:3:8c::24) To SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72656ab7-725f-43a3-91a0-08d4eba47e77 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:kXruRtHSqnCCtWFWtj+TbizpgoyLVajEAl19vPrtV4m+/PtOsleWTzFIkuBJocMT14/jcbdm311y/D71r4wBJF/UkUbMCCQNJ3ipvDTdZ9Z+9GIfRnaFPtN5bZa8lmLD78WEbQdGz94wpMMnUG6TA8d/CFRbC4YIreZXVZT//p3DxbR+46UVBlpuQGJo9Mo9dxFLopZWgV116oUAY66pvRdtPmqYTyBqRG4mD1eb/jroLY9OzKVWza1ttdVTiyyX; 25:qT0is1LFb7H9l/szG0tzgs9W9MsvxghF6UEoCMYHkabzsZeZ4U3W+a+144EJSOIV04uswZWaX6eyWBBGgBGiHN71iZ9hwOGXavhcFdjWRAS6FOGnv+eRCTNf58jIG7T0o420ymV2mHqlVDetidfGzVFGBl0a/dAx+KirQbWWswbajW1iT/u9cP/DAip4AJrvOoB8vijZHPTH6NdrOXtfwnyqqmGsAv7bb6gpB2dX/En3deZasdpFXNBl2nMFZumGtbqMI8lMnesqFzp2orLWENU+y7XZsqrkz5+J8oWJyArgdzsdANTWf9ceMH/Idac/obQ1PdE7di4MCYUyxxkT4g==; 31:OFVt5f3TM6ua1S48Xr7d1CGz3A3Sqg2pyd21h2ZRoGUSQuUb75xWlAnd/R0cYSHa5VCNGLyGw/RxkRHTfRx/tw/56Tifddo+ALauphv8y6qMHVwAYmut5e6cCHV1zt+Rd+4lpyk3/V51JyyEQ9ezETzxO94YCtjRFcbOnOawEBqLGsv49A2aVnNg/yzpwlLhaSvrhrZlxqEtB3hBFHfX7qHpZfe97QXGInhYts1Cj0s= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:/XStHVegdxDqoB4kJtzImoaY7EaPrn+esS4gcw571VEVIUqxnz1V2jV+pqViMVVaIrdXy5MicHQQ0svR4bQuRAH/v6P2IAYzczpQujvp2sv+nt5XWEN3mX17HDadqogMLX8U+n4Go9eEak2qovXmkJVzLIQS4qje/lDhhjdOd2cOo1i1l5AqHODdHE4OEc/KO9HzXitBWE/6CFcTA1USycDxomWWHJfh9zwULq/epN4r1sQ+g4WE5JXcH+pW5rLODWDfyTUGgGOmCZBljGByI/FjqDVBURSV8947s4mw9Uf/FupSR/oTZaqa2y62uO8ClpmAgltXDvlg7hi2n4uIFnCr2li17T86ei9NvdAYMo9+P45uVsLnaPT988IGRETkhcgiIR9W7YT2sg+dX12lyHbMchkzB8W3uM72rzTVvkFgVGRoOiSmJjpix1V1idLOnNS21T6+Ua9OekCTbq2xMdMGMCJuZFvlpd73uGY2w93TFDoq6uu/orIl/t7SVz/YeLbSvDchgCgsY4DHXtKTfASshwTUfWyKbW90qJU0EV4qKuclBnvwCJ8CQH1isEf1FeI3z4q8QCBYcmkshCNqvxV8Dnjx3Ct+De2e1g7Aiy0=; 4:llpx7jzrFBfe861rxC0dseV2kWPUWf/qEVnaJNMc+yW8DunKPA03YVMetyzP1xGcBCHoVk3euiRGH3FQZi02ZNCADoye/Et0jx/e0tDS1jynkQmBXz6jCSdST5r4MkeiiP39IlG3XlYaGb2haZotfc2Jhb4MQ3XvjQHiCqEYywY7sAxbcglpM2xZs2DE7yMVwlUQ5T+mjNwVHSVIdOq8tO54QuL/qUS4NBoYIUKNAegFO8wYwFi41nWNKrLGr/jz5WKHy4WHdIVylyFNAkXVtBvnCMcftlwirzDrAsTb56w= X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(100000703101)(100105400095)(6041248)(20161123560025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR07MB2526; X-Forefront-PRVS: 041032FF37 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(199003)(13464003)(189002)(101416001)(189998001)(53936002)(105586002)(106356001)(42186005)(50466002)(6496005)(478600001)(55016002)(110136004)(6246003)(9686003)(68736007)(42882006)(25786009)(81156014)(33656002)(5660300001)(2950100002)(2906002)(81166006)(6916009)(4326008)(8676002)(6666003)(305945005)(66066001)(7736002)(97736004)(53546010)(4001350100001)(47776003)(83506001)(229853002)(3846002)(23726003)(50986999)(1076002)(76176999)(7350300001)(54356999)(6116002)(72206003)(33716001)(18370500001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2526; 23:RgvWb8yZcdcQ69DAU2GawJ3vWQEHqtUomtFS4/sdf?= =?us-ascii?Q?76cB5PKRz9AquA4ERdSXcwXjkEzN1YqlOGKKIrjj4t/mxxrUDdez/hejqqed?= =?us-ascii?Q?uVtPqJX1J5663EBvI3yrtfBHKNqmh9BVh8qSraEFoR1Tx1sqFaeg7R3Qe5bI?= =?us-ascii?Q?V3M0+zYm2mUpBE8JxVwcfpuKMlIy3EVkjrAPsYDVlQ5ojz+eLjBNX9+hS/dh?= =?us-ascii?Q?adi9OZaZl7uNXn3YjL1q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MoUyu6CY9g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:31:48.6730 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 Subject: Re: [dpdk-dev] [RFC PATCH 0/4] ethdev new offloads API 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, 25 Aug 2017 10:31:52 -0000 -----Original Message----- > Date: Mon, 7 Aug 2017 13:54:27 +0300 > From: Shahaf Shuler > To: dev@dpdk.org > Subject: [dpdk-dev] [RFC PATCH 0/4] ethdev new offloads API > X-Mailer: git-send-email 2.12.0 > > Tx offloads configuration is per queue. Tx offloads are enabled by default, > and can be disabled using ETH_TXQ_FLAGS_NO* flags. > This behaviour is not consistent with the Rx side where the Rx offloads > configuration is per port. Rx offloads are disabled by default and enabled > according to bit field in rte_eth_rxmode structure. > > Moreover, considering more Tx and Rx offloads will be added > over time, the cost of managing them all inside the PMD will be tremendous, > as the PMD will need to check the matching for the entire offload set > for each mbuf it handles. > In addition, on the current approach each Rx offload added breaks the > ABI compatibility as it requires to add entries to existing bit-fields. > > The RFC address above issues by defining a new offloads API. > With the new API, Tx and Rx offloads configuration is per queue. > The offloads are disabled by default. Each offload can be enabled or > disabled using the existing DEV_TX_OFFLOADS_* or DEV_RX_OFFLOADS_* flags. > Such API will enable to easily add or remove offloads, without breaking the > ABI compatibility. > > The new API does not have an equivalent for the below Tx flags: > > * ETH_TXQ_FLAGS_NOREFCOUNT > * ETH_TXQ_FLAGS_NOMULTMEMP IMO, it make sense to keep those flags as PMD optimization if an application does not need reference count and multi mempool in the application. As example, An non trivial application like l3fwd does not need both of them.