From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0040.outbound.protection.outlook.com [104.47.40.40]) by dpdk.org (Postfix) with ESMTP id 31260FE5 for ; Mon, 28 Aug 2017 07:00:35 +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=Hy9Two1kXnT+JQbOIjUDn5r163aGzJu1LRu34a7lQoY=; b=lYoKpKrU06tzJO8P62VNY0C+hpM7VnVTfLP9pc/Sg8ISXUbI2XAOVJJ7oUMPzSqL//8ajJOFKGGYZP/faBrB1/M71jQ/cgtpJqrOsG85elxTD1AHL1NtYFz59VjLFiJs0D9bNZyzTQFQ1NmH/al7BwMavKiyDn0MDxQG1mb1bFU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.76.126.71) by BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Mon, 28 Aug 2017 05:00:31 +0000 Date: Mon, 28 Aug 2017 10:30:08 +0530 From: Jerin Jacob To: Shahaf Shuler Cc: "dev@dpdk.org" Message-ID: <20170828050007.GA10095@jerin> References: <20170825103136.GD9774@jerin> 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: [171.76.126.71] X-ClientProxiedBy: BM1PR01CA0110.INDPRD01.PROD.OUTLOOK.COM (10.174.208.26) To BN3PR07MB2513.namprd07.prod.outlook.com (10.167.4.138) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b0d4eef-d909-494d-2faf-08d4edd1b65a 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:BN3PR07MB2513; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 3:H65sPtjvxsuf2sIqshSUypXAnAwSx3Helm8plk003puW6xEcoVTE/iiHANv62JrDACZkMl/X8qm1D69sIX36zqJN0h6V03DyPS6QCQ9g9IqhZyHLvtb94S5uG++QNi2KnwIHBAfPlNI9OTCotV7gWFCL0iaM1nyksKXxYOx1IOhzJOIapvPEkihHMSzDfKoYoJruRGZSMQzORXI0NztxJrHyYrry3YKZO8iIZsaN16ZlMqjH5pS3/Pt6TCwAsZXh; 25:I3SEZSmNE23GmLTClpE8/unV1+EYrNjGOtTP4L6BLAJ/eUwZigEf/lhZR103V+oz3Urt7hVdBNA8QkjlYN762QIw/SUFzr1yK12HQxXLt0ITLswRLSPOAwQbIrrnTtQSEoh9+JJXFRnyJ4vloSwP8vFWlsDkVoPe63Mt/Zljh7/r1c6wuBIyCeobNj5aluGCE6U+EQLWgB4zeqe0a1EyBqTvWdkqL3Vh5/QUlTH9AjXeGxbLdKM+De8ZdK7tWRXpSt+zZt6nWYmAMKU7d/2IcjyyGrson5qSyT5Mk7SUalrjSFlVRlOrIL4vKUgVG//TEgukh3GYdLGls+CWXPjtRQ==; 31:Y964npp6yFAZNzO7DsRrYK+dcNGNWvZi2ZpNR2FXJO8WzaXhoEy74RUiP9HtVr6NDRKY7aVGMERwPnYlD12hrhWdNmDUS/dPGMGmNME7CFld/NvpiAeFSR0m4DY3GseW9vM7nFoKQODMpd4QEKAP2jNHyz/ALjr9GQivUodIoYsYF8eJygsyTXw+neXF4zOvnKnMhgeNIT3XKJ6l5rJ/eknbCMAFUTDqwzxjRBMJaYM= X-MS-TrafficTypeDiagnostic: BN3PR07MB2513: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2513; 20:QT3cy+7NY2MFI/qqGGJZlokdlP5/m3CbAEQOf4ZtwGtT87wKFAkKgUgtODXAZn2br36THgGwGIPvoqrfoUGG8ELH58vl/qA01qZ1ZZYnT7UmALyT6LhKEp84kmBi7dGK+DNKl1xUwvAQTkbh0pbMGN2fZI9MvfEfJj/2je8vkW5qjgrFfUUUzzsmBpXd6g0TXmPsjfJko+aA4dTVwoe7O/w4bUKkyfABBvGAb/JZhugkyYl77yqjT0BRn0MYWfBt9Jw5iRyifQ2bxkn5bn25TjY9WPBRsBMDXfdKrovKdsLn6l9wPdbf/KTpujTFw2hfoT0Yy2Gt7skP08DZcAR/c08wBdeLa1s7Wq82z/8tSoY+QcBGC3nJm8RX3JJNvSVpMf7ajR/fMOmucmQWH2pEuG0pq51nZa2D79Sd+L/OzoRWXTMNY/DNvv39unF/BXcA8xRhVkVGlC1b2wkD5+EyRRIeFUpKQ9jJh7jyZ54lQhMeX+j3iETlGF/jq1Dxacvj7uol6PJComVoKlACuDTrUl8bVa/2kODpd0sLD3OLG8E+nbdhZHHE9BtVJFOUVyQ0/rvmVNIoKJetoakexE+PIeWEERJPNmPMHM2D6W7IRhw=; 4:1X4vPSZoUT6DhrQ1iiAaaX/8Hddalix0TEMsVkGtgwPuLj3TYY68nTFsUpNNpKBIZ3yfI6uPoXcBwN92X5Vh6jN6e8WYGUpWkblLTbwKsMBQfpAeuxvqjBuhYWe2gH230uJdrnGzXWQyHpcJRIu3NxuSzGRgn1JILj4vm2+itX2VI0DL+erwlY0pVpBpKlpqzQ0Qm1hj7e6uVqPYpgeDWxF548b43C0YKU75j1Yh5VfxQ4PLO0yDUAN9fUDul0loT8Zca6KMsRTaIxW7N2nuMS7GFVkw1H+WaxZ/PRgd8xA= X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); 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)(93006095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR07MB2513; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR07MB2513; X-Forefront-PRVS: 0413C9F1ED X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(377454003)(189002)(199003)(13464003)(72206003)(23726003)(4001350100001)(68736007)(42882006)(33656002)(6916009)(2950100002)(5660300001)(6666003)(2906002)(6496005)(8676002)(81166006)(4326008)(81156014)(83506001)(7350300001)(110136004)(7736002)(97736004)(6116002)(3846002)(25786009)(6246003)(1076002)(305945005)(54356999)(478600001)(66066001)(76176999)(189998001)(101416001)(55016002)(9686003)(53936002)(50986999)(229853002)(106356001)(105586002)(42186005)(33716001)(47776003)(50466002)(18370500001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2513; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BN3PR07MB2513; 23:H7f+lUkkGebuTekB+MQWSr5M2FZqtDXMZqoPL2wah?= =?us-ascii?Q?kz5V26Z55WsCDjX24/uat4OhRy7Af58okMfoRA0E2/L9hLwuga6HcMjwKB6q?= =?us-ascii?Q?5C02woHxhBt+OhkhJoo1CQfteU0BYgYxWgAzEN/8cNVD130H+DW6t4zYgNdy?= =?us-ascii?Q?FP3ZAKJLs8JPfKZqfazl7Nam+EYAiIcO4t2M+LCxa3bL8bT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THpkfkRvaOIbJtgp/1PwkNziBLoP0LsxT14B448j9EQwGirZlwuxnsCkumS82XCJxJTIY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2017 05:00:31.6737 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2513 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: Mon, 28 Aug 2017 05:00:35 -0000 -----Original Message----- > Date: Sun, 27 Aug 2017 06:05:25 +0000 > From: Shahaf Shuler > To: Jerin Jacob > CC: "dev@dpdk.org" > Subject: RE: [dpdk-dev] [RFC PATCH 0/4] ethdev new offloads API > > Friday, August 25, 2017 1:32 PM, Jerin Jacob: > > > > > > 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. > > The l3fwd application is yet another simple example from DPDK tree. Am not sure that a complete vRouter/vSwitch implementation is with the same characteristics. But not all dpdk applications are complete vRouter/vSwitch implementation. > Moreover, I think the fact there is an application which is able to use it is not enough. IMO there needs to be some basic functionality always provided by the PMDs and not controlled by flags. > For example, let's say we have an application which always sends the mbufs with the same ol_flags, or even with the same length. Does ETH_TXQ_FLAGS_NOREFCOUNT comes in same category like mbuf->ol_flags? > Will it make sense to add more flags to control it? > Will it makes sense to run RFC2544 benchmark with testpmd io forwarding with those flags? > > If the answer is yes, maybe those flags (and others to follow) belong on different location on ethdev. However for sure they are not offloads. I am not sure about the reason for opting out mempool related flags. In the context of HW assisted external mempool managers, Enabling reference count is an offload from Ethernet device. For example, with external HW assisted mempool, ethdev driver needs to have different way of forming TXQ descriptor in case if reference count is enabled(as, in the case of HW assisted mempool managers, bu default, HW frees the packet on send) I am fine with moving the flags to some where else if it is make sense to you.But from PMD optimization perspective, I think it is important have these flags.