From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7DE85A00E6 for ; Tue, 6 Aug 2019 10:19:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5BAE71BDEE; Tue, 6 Aug 2019 10:19:24 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80088.outbound.protection.outlook.com [40.107.8.88]) by dpdk.org (Postfix) with ESMTP id 75BD01BD43 for ; Tue, 6 Aug 2019 10:19:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UOE/ib7MyOs88mQ2FfHq1KT03x2FqBY4sOsaJhJYDkQ2wsQGlSuC3cfXO0J+OBQhQJm1GJDdLGQeT8g3bbNuX28eXWcz2dfjTsMG4ZO2DKkfw06ykXu3GsVhMuWE7OCm1m6YadLhygn35KxdZKzuVO+A3KzVd+C3G1IowiQMOi6P95yloXGLD3rJ7c20FtucOPDmwp5K1W3mnCS/ib1KY+eT7qiR46j6PNgzc28R8WOT2WjrN1blJBSXRbKrUpdXCAtClL1ONOFg/BfJ+l0k/7OFQcgkAkEZ+kEYBC080oOJQ+fDpEhyXQy60xsA3xAA/s/WTc+XjOoQGEFEP+XN+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FVwtygRt6TwjOawiC154ij/Wo7KcJdCIidueh1qKZKQ=; b=LQtZIGBKBARwHre7lWEdb0aAf0c2j/zGI+faZJVpJ3mdtKPTm8XOWIevvZ42nM9Y+yUUf99YgNopFgmSFbQmwDWT3w1VsaZWF/vgvwVHyB4F0mFVxeS95C3bjk2m35bdRfaGPc03eBf0JERJoAZV/YgXvmNZydvgm+oUPD+Nz8OyIYSZWIleeBosX1TDSF46YiPjHc51Zg99dt3/5ecF+q0Q+SjFDm6sz97Yd9hCPLWFwJwAyd7sxuAf89dy6K1WEy9AocoFi3xKCDSfpUUvm15FyHae9miJI14Ur7LdqqfdcMOvh0iwjl/3cbj6a1l00s4qPvXZsYANpnz8c9M5bQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=nxp.com;dmarc=pass action=none header.from=nxp.com;dkim=pass header.d=nxp.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FVwtygRt6TwjOawiC154ij/Wo7KcJdCIidueh1qKZKQ=; b=ojoDp1+JvLr+kExCsm3pEUsIdJklNFscyX3+1Iy7JRhra3rGbw8mFr7aA/77wP5+Nn4y6CDzazSyjIbERlP/5ij/Pmw/mOT/XYxHLBI5QA61xI8yDYtrKYiLPhfOvAmQn1alsq9sQC7+6zDB4GYVihP/3Y2rOnAIprezcYtvC5c= Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com (10.168.62.139) by VI1PR0401MB2429.eurprd04.prod.outlook.com (10.169.135.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.17; Tue, 6 Aug 2019 08:19:21 +0000 Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::24bf:633d:8481:ead]) by VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::24bf:633d:8481:ead%6]) with mapi id 15.20.2157.011; Tue, 6 Aug 2019 08:19:21 +0000 From: Hemant Agrawal To: "pbhagavatula@marvell.com" , "jerinj@marvell.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [RFC 0/3] ethdev: add ptype as Rx offload Thread-Index: AQHVTC1DP+5zah/+OUaWvL8lDZeMWqbtxPwA Date: Tue, 6 Aug 2019 08:19:21 +0000 Message-ID: References: <20190806080206.1572-1-pbhagavatula@marvell.com> In-Reply-To: <20190806080206.1572-1-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; x-originating-ip: [92.120.1.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0418b72d-7868-4665-9f95-08d71a46c8ec x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR0401MB2429; x-ms-traffictypediagnostic: VI1PR0401MB2429: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0121F24F22 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(39860400002)(346002)(396003)(136003)(189003)(199004)(66476007)(99286004)(4744005)(33656002)(14444005)(4326008)(186003)(52536014)(9686003)(7696005)(6506007)(102836004)(26005)(256004)(66066001)(76176011)(68736007)(25786009)(478600001)(6246003)(14454004)(5660300002)(6116002)(74316002)(305945005)(3846002)(110136005)(2906002)(71190400001)(316002)(86362001)(53936002)(71200400001)(6436002)(8936002)(8676002)(66946007)(486006)(476003)(2501003)(446003)(229853002)(44832011)(66446008)(11346002)(7736002)(81156014)(55016002)(81166006)(64756008)(66556008)(76116006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2429; H:VI1PR0401MB2541.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: tyVD6NRU9MMg1x4zejs1ndyNlYeGLYZWFYJvek3EDF2FUkjbCdBEkXLK6mszC3jo9zd72XGovY8H23mDwrbI8Zj6t5ftYNFf5nGhj5SF1JR0LftwPnm7PkG75aHw3MO1VvTS2kyjS7SQYWv9pC3Zkb6dJpMtVNJ+pu7vQqpd2CSbFT8bPj3Kegsri8yveL7qGtKv3LNwlt8Ste+5Uhzm4LNUJVsM3Svb/s/WrX0lgrcBXWkmykZAcTAUkKajSp7+KZBH3UtcSqZ0AoElRvT+SMYsGNiRPMKF1rMPzp+l206dKmbvvWoiiwVV7ptsEVtt2v22W6g2W8Z3PyeFm8nk6q58sL5NyJc0QVO6zPs0EyPoII0+OqWES8HBOwCT0pOfNJg+QoojgqQUBdVmzklSrdAgknBbwbDHR5awtZIv5ak= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0418b72d-7868-4665-9f95-08d71a46c8ec X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2019 08:19:21.5428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Qqy1POWN6jTHrlrbKCzcbZuiMe0YOtGp0Gz34ExEYdFiUeRzujT0HucUyjRKwhX7gSsCPIpLrDBa2SOS64ezFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2429 Subject: Re: [dpdk-dev] [RFC 0/3] ethdev: add ptype as Rx offload 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >=20 > Add PTYPE to DEV_RX_OFFLOAD_* flags. >=20 > Currently, most of the NICs already support PTYPE parsing and update the > mbuf->packet_type through an internal lookup table, but there is no way t= o > disable the lookup if the application is not intrested in ptypes returned= by > `rte_eth_dev_get_supported_ptypes`. >=20 [Hemant] it will also mean introducing another check in datapath, if the a= pplication has asked for PTYPE offload - copy the results to mbuf->packet_t= ype otherwise don't do it.=20 Your second patch is incomplete in the sense that it only adds the capabili= ty. But it does not disable the lookups?=20