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 0605BA034E; Wed, 6 May 2020 22:17:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A2D551D9EB; Wed, 6 May 2020 22:17:25 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id DF1151D955 for ; Wed, 6 May 2020 22:17:23 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 046KAOoW015531; Wed, 6 May 2020 13:17:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=1RdmdQvkfZ2ozpGt0BDPGnpveHzYp+H2awV3afBepJA=; b=tDRlUPufDUeroqQN7RBa82ZVSwDZyde1rNcOHlA8EPjP9kasetb7NB+3T4h6zoY2lLPH sOyi4xJs39frtwHw5k7Z/oT5b5GlrXz28MN4F+dtxwGObuHlpzfqi3fgBm3PUGlxed6H QcNMItqLWkxvZKmDmKrfazSHSBxNLA5hvX0XrSJi3dGA7p7iXyfTp82C3FDhIR7A1dIM YMICmrX6iKkLFDI4x7fmGDrg2UTJBdk6bO98bFbEWSz8amfPEDgMsoqkzOOMv1qIAad/ 1FMbFMwtPhjjBGqK4GcX7HzDKgq+PPlCUgzWBZKfO83tV/cGoMYpIlNqClPTBa5y1PCb 7A== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 30uaukxpnn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 06 May 2020 13:17:22 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 6 May 2020 13:17:21 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.104) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 6 May 2020 13:17:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QH0oYwUzl03f0FHJXVu+lZHMpg9ibj18KEpGF2WOhvHAiP6wIxhJVmp9OBAtznNP0FgWIDxdM4+avSHBSxS0HQm/lB1Gxeufqqzjr69rHKDBR9KR66tMysw6sASPQlJteqq/GhydcKU4qzfwhzj/r3Z5VEwMbwOq/R9K2+IzLedAFEQAkCVCoBODlauG3Y9CMhhPQzJbwGp9C2lxLXqvHexCj16OYJ7VDnGMsZFeRtkc1wNr8yfovFL5xYyT99mWg3GmACvj/TCfj6hCF9B1Gg7xyr5LtwRC+NLdzEROxqTD5W61C4mSCl3QEW9el4mraiJs9ix0jqWMnOjMs/9E9w== 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=1RdmdQvkfZ2ozpGt0BDPGnpveHzYp+H2awV3afBepJA=; b=m7bvKWFQyrEEHAIn3RMf7Wf+aVBzxybq8ZBma8ElB7TQKMyGHCUK/vAKROTQdMobXhZX4lszhSeRb/UX8wniK9nKanVn1VXcpgu03LE3eJRAobeqjLp3TxbaSgHOQEmxekzn3TGippgTx3BBkxOgQodO2Ir38v6+7Am3+pTvDCXnpCShRBELnzMD2G1y5eiMbz+9LZzgKnnUdsO6cxKvzv/N9Rs3IFs8nvNZXOenGmgvSbpWbfge/qhqrXSCoY3YZTXkT5lmAsZjH8VqJeRDTLYKCvpgAD5bX2dI6p6jMg9R8E1bGnbIbi666Mj0EcQ9v1w5Ot6WmsGUl9tQutf/Qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1RdmdQvkfZ2ozpGt0BDPGnpveHzYp+H2awV3afBepJA=; b=TxjyqTc2pnjxxjvTaayDq8mR89HZc2FnS9Of8rB5abeKNneJufsO/6rXbc5Bz4zJfnAo8w2lbYwX0Q1znUvlrwEUYFU3xj1wGbBcEIR7+xPZbANELWUWuoR/corbV08KDCRC9gJmtLenZ8K+saolVWmDV+cdreO8qdwj5JGTBJw= Received: from DM5PR18MB2214.namprd18.prod.outlook.com (2603:10b6:4:b9::21) by DM5PR18MB1257.namprd18.prod.outlook.com (2603:10b6:3:bd::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Wed, 6 May 2020 20:17:20 +0000 Received: from DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::a18a:2341:a36c:2c41]) by DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::a18a:2341:a36c:2c41%3]) with mapi id 15.20.2958.033; Wed, 6 May 2020 20:17:20 +0000 From: Liron Himi To: Stephen Hemminger CC: dpdk-dev , Liron Himi Thread-Topic: [EXT] Re: [dpdk-dev] input port in mbuf Thread-Index: AdYj2qw99dXG6+m7RjGGlYGufvFpMAAA98AAAAAT4XAAAOJwgAAAD6Sw Date: Wed, 6 May 2020 20:17:20 +0000 Message-ID: References: <20200506124258.69b138e4@hermes.lan> <20200506131031.6379f80a@hermes.lan> In-Reply-To: <20200506131031.6379f80a@hermes.lan> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=marvell.com; x-originating-ip: [89.139.16.88] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d13ffa47-40a5-4c73-6bc4-08d7f1fa7ade x-ms-traffictypediagnostic: DM5PR18MB1257: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 03950F25EC x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VmsYHjJAbiDdxAkMUxy1b44cGTW/czUVqIx/SswkYaOupCRrNpTjReUOApzKu1b7zmScyYpkYqBrBGENKtaKGfLtv8wj+oDetuzy+/PLPCl+4yzVhTndD5blJns9FTniOXAZnVeaxKKKScqlaFVqlY2v61SDLNYktK+Itoujq9Z5X8bTVZgGU7cW1bqQALOzRYWk4cxvD3gy0Me7kneeYbDW5uGT+BYYv9kw/mNp23+3LtWCdrYOGrTSzt6mKG4atZWaU0ssSFpi4eJPl9U9tQggyqUdCkhZNK/TR/MoldCLhhV4lZrlYoAeB+0hAdUFlWh9Ftdmk/DZo5wiLTNzJrTHOgzTo+Q4wt9El2HaZWjZp9fWxQIbhYpVl/UJGayppI/VdxsRtT04aRU87SUnWYmhvr3GTr2nYyncdFNdbeW2HBgox1cDQG5NO680YeaaGfcYCKutTuhhZOktc4UhTuHLu78r+C4pkSWrnRS7ruA9emvxTbu5cS2EkorP9lPW/MIB9La+rzMHyZpSFd02gA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR18MB2214.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(136003)(376002)(366004)(346002)(33430700001)(33440700001)(52536014)(53546011)(8936002)(4326008)(5660300002)(8676002)(478600001)(7696005)(6506007)(26005)(9686003)(54906003)(55016002)(2906002)(107886003)(316002)(66946007)(64756008)(86362001)(33656002)(66556008)(66446008)(6916009)(71200400001)(76116006)(186003)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: QAu/lx0XBuHqs+W1nZiQKh2wKbRSdL+PME2qgg0RcF9sLqbLJ9DUVSxuBLJvCT4aAmBBfNo00UQ0Ts3x9ehStOqo/rj9XA/E8ZvG2iM5nDR0ypMGUS2MjvVNdOpKPmGAigu6Cp1CTFMFtWCsyTEAk3YGiz+FhkcF6qe9fYLp6/sKSkvqODspbuRp9RicwLilnn/eR/rJ3MHAlvlxeimc8/d0umsA15g6BnqLDgrZtjdeTt/wlqtyn1jbsiHymdgaS5z5Je4l/kq8rJc63DWGZ464p8j7y7JB9GIf/+IYyNACTo16+o70SjGNO4PYqF6G5S2+k5pvuiZ9XrFUjxENZ81gni3SB6OV07ZLvMIczWYNAIowpvPaAfs3N6H6tzzTNZYvHTQmreCxbOa1/Is7yFvinBenj+s2pRFKIMBnPhrOGy8AWIvzkb/CsIIy4PWMMnInpMtzGadmDgG0RSx+JVImBS2ts00odzQaq+C2osGQcb6wYoXEUdxFVUpWj3y0nSOoDqj2gDCU8YillEkKA18GU5C5b51GmtOBqqciW3FNyYblRGwjs0w+2vB9Q/lLcLkViAWbe2pKQ8aMfVJuehWTsJtpmimf6hvU9lykcyuIPkgegQBh+TbKE8vrOhXXAiHDRJdYhGMUmq+/4kpl4qDkzfe4b33DAp15QKCHVcWa8MuqiXEBrBz5OzWxYsdUmtjzyoYvSYN5fWgP45ekb5iEdgHDd46xiKnFHTIkubD3i8fUtD60n7LDgT7X3xEPfjv9Jm0MwR6dZDCkmvL78/JWCQXHnRMyoD0eQyp8ULE= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: d13ffa47-40a5-4c73-6bc4-08d7f1fa7ade X-MS-Exchange-CrossTenant-originalarrivaltime: 06 May 2020 20:17:20.0790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GRHegNQsnOLsu6EDeve9XvWwTPIfj8jWOAPY8HlFL85Jb0ZN8SzccQJX2+u25kkkgcLsKxork7GIEJiXmcB0MA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB1257 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-06_09:2020-05-05, 2020-05-06 signatures=0 Subject: Re: [dpdk-dev] [EXT] Re: input port in mbuf 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" For performance optimizations, we need to know the input DPDK port as after= the buffer was transmitted via our ethdev driver instead of release it bac= k to the memory-pool we can release it to the originated HW pool of the inp= ut port.=20 Regards, Liron -----Original Message----- From: Stephen Hemminger =20 Sent: Wednesday, 6 May 2020 23:11 To: Liron Himi Cc: dpdk-dev Subject: Re: [EXT] Re: [dpdk-dev] input port in mbuf On Wed, 6 May 2020 19:48:26 +0000 Liron Himi wrote: > Fine. Is there another location or option to save this information? >=20 > Regards, > Liron >=20 > -----Original Message----- > From: Stephen Hemminger =20 > Sent: Wednesday, 6 May 2020 22:43 > To: Liron Himi > Cc: dpdk-dev > Subject: [EXT] Re: [dpdk-dev] input port in mbuf >=20 > External Email >=20 > ---------------------------------------------------------------------- > On Wed, 6 May 2020 19:21:30 +0000 > Liron Himi wrote: >=20 > > Hi, > >=20 > > We need to save the input port in the mbuf in order to return the buffe= r to the right hw pool. > > For now we use the 'port' in the mbuf as it is supposed to be for this = exact purpose. > > But we noticed that some applications are override it with the destinat= ion port. > >=20 > > What should be the right behavior? > > is there another location that that this information can be stored and = read only by the ethdev drivers? > >=20 > > Regards, > > Liron > > =20 >=20 > There is no requirement that input port is unmodified by the application. The memory pool is already in the mbuf, should go there.