From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E216AA0A02; Sat, 16 Jan 2021 21:01:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 59382140D74; Sat, 16 Jan 2021 21:01:50 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id DAF88140D6D for ; Sat, 16 Jan 2021 21:01:48 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10GK05Ik027614; Sat, 16 Jan 2021 12:01:48 -0800 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=pfpt0220; bh=U2+D31dOHE+hB5MjCB566wIBSLkpkfV1i00Ovdwk4Gs=; b=G23XdQFOMkh/Mj99W7DzhtDRWVs5OTiLDRIBzpDWha3Z6deUH52IVGkLsXcJ6xfPniwZ ZLGDF16uERgrXI0SEbKRRshx0UUrrW868e3XFDCM7kYYrrzk0Jj5m7/Vk0pmWCTOVTRa 6FRFwHSTS/PZHoJNOwKMrq8v3kWTuoRktwDlRLIwgC2jsSm1KaLobiymU6STwcm0WOiL YfQ/o4ueF6w4HKF4V+2HvcFCdbCWIHAj9L/LmC2W+eWD8JcJu7G/b1kWyD0BosLDbirP mUzcYAS1zSQMIz/usi7vEF8u6fRMHDOJgvGCPcfE6Z1QKOoZFVO+GxdAHMzvvUlRJu26 lA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3640hsrdsx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 16 Jan 2021 12:01:48 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 16 Jan 2021 12:01:46 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 16 Jan 2021 12:01:45 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.104) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sat, 16 Jan 2021 12:01:45 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lxI/BjsEn55HQWFA3vknQNUDjn20dtU6QMXJn7qRxbxTh2hUgjuGLWygi3yeM7kEvQyRJ+Lu5h/DBrLBaKbZSkLwwXAkecnjUPnQTwZzb7PxRIfOQHC+2gRyuSvTwNv7iIMNoUxF4leKVw4PoLNhaqkId8tJckw1re2QwUHUDU+iZbNlLCuyETHF+sJaN4ve490G/e058kkRGf8ZCMmfZcNY2aTlybzdAfaFUpS8dIYvoIbUz6GZ9zaS9lmz9/1E1xSW4DyxSBOQmzMUGvfM4QNRbbC/dvVXpmz+cBS0nuJuSfRH3rnJAa9T+OrtaDKuvDBx5DxKSfyT2oRh9tlGXA== 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=U2+D31dOHE+hB5MjCB566wIBSLkpkfV1i00Ovdwk4Gs=; b=djbh5oNxVi622c38tMDznw9pJK6N7haeL8jML4xrf1JWP4vZ+HMb5zAVxuDVVhK7Zt+eML/uE0HuYoh8gf5QOOPAhRnRT86BfEGc49NK2s3p2vmrayd3mEnqE+rTbEYXP9I6bP91uL7bEbgCyRvXx1WgEqYWn7lgg8W3JZ6vmoZCcjyXKxR1Y72IqDuCXFbcQSAJ7rAdv0hdOWIfipBeAcHBu58/muQMjyc5GlnPs0qaR/ALTwxYYn2r6bXAOyZdjw4x6A6O0qWKXNaJ7qoAxhuCwEqWdfMCOkVGnvW2WfY8NcTfrxGiLmiYZJ+N0lVjAN45AIai23cmnkZsa4DfwQ== 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=U2+D31dOHE+hB5MjCB566wIBSLkpkfV1i00Ovdwk4Gs=; b=QxHuPrzaMOQYTt/NuuwTmdsc3XTIjsE+T7aoi8MISZfIwo6MH4iiWfW5p0BVcPeeLl2++nASiDAkaeWyJ1Q09HalmdfwItU8VSl/orNue5rP7dBlh+3ddcHoeYwW32JUb3SyxbG7otdRdMaqKyPk9fGTJZfhgiVVq4hQeNRLzIM= Received: from DM5PR18MB2214.namprd18.prod.outlook.com (2603:10b6:4:b9::21) by DM5PR18MB2343.namprd18.prod.outlook.com (2603:10b6:4:b6::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Sat, 16 Jan 2021 20:01:43 +0000 Received: from DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::a517:8b23:b83e:a12f]) by DM5PR18MB2214.namprd18.prod.outlook.com ([fe80::a517:8b23:b83e:a12f%3]) with mapi id 15.20.3763.014; Sat, 16 Jan 2021 20:01:42 +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+m7RjGGlYGufvFpMAAA98AAAAAT4XAAAOJwgAAAD6SwAABmOwAyF0PBcA== Date: Sat, 16 Jan 2021 20:01:42 +0000 Message-ID: References: <20200506124258.69b138e4@hermes.lan> <20200506131031.6379f80a@hermes.lan> <20200506132342.231ca2ba@hermes.lan> In-Reply-To: <20200506132342.231ca2ba@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.3.108] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3f388c52-dddc-42c0-d162-08d8ba598b81 x-ms-traffictypediagnostic: DM5PR18MB2343: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zLxGF0ceTIXOfzLxdoRPCY8zX5JgkUUiZ+s329YCxPM5XZXdnxsnltIX+3hUOoY7MJA/4zVT3X10SAY8uR1XiK7apyVcFJ6B14rqIP7d7T9bAwSIHBboF/bIC1YT9bptg1ca4qIiQ2BhP/5ecwZGw9xZ0TYhLYEEu7a/TG8M9Yp10uXQDtmvOcyA2O7nrqSlw+E5uhVJPPOLGvArHL9tPzdoyxITqtNTf5dMjpmseAKnrls66QuFVkZqHp9lcPApxrgxqNENa+5I1IMToB1mGDCS45HGIfeCkuSbKQmB3tGo8OuQLiCF3DTdNQFI2f12EyCK036xIXMphoYorCKmSW1GTchzYBcG/Xu7ORknTQASF88g8U23TwTGxv5Zq/AlLWpTnACSgThG9GyI0Ppn1w== 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; SFS:(4636009)(136003)(396003)(39850400004)(376002)(346002)(366004)(7696005)(107886003)(4326008)(186003)(9686003)(2906002)(55016002)(26005)(86362001)(5660300002)(53546011)(54906003)(66476007)(66556008)(66446008)(64756008)(316002)(76116006)(66946007)(71200400001)(478600001)(33656002)(8676002)(6506007)(83380400001)(6916009)(52536014)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?9ZAd50Fgw56I8/HCvxxAHREoaZ6zWnSXfOQaNDFMO3lnueSDMSFmW2S7H7YV?= =?us-ascii?Q?7daGtK/WPf6qhLFbIsobo+a5To/08h5Qm5jn4tkYwPuz0jI2GLK7EAr8ZPei?= =?us-ascii?Q?vD4QKOGknE/V0iePUOpYuEHQM0pxWp+7Yo8IKJY6AHi/ZNQJUe0Ec1f7sV07?= =?us-ascii?Q?wCcjK8q8Yjx9n7p+mB+0Jxv4o4r3HDWd0brnCM9aeBys+J3nV/+zE1/ISgYv?= =?us-ascii?Q?uLocrmgYuXNNXfKUiktpnQx8of2Ljv74wvC/TKyDGRjgU5YDdUuQPaj7iFPd?= =?us-ascii?Q?6yWg6TBXwXq8gz17Ueb1nn7tjxEhwyO1tbqoc+gf+tPuwfdasoNfW5DmUr9Z?= =?us-ascii?Q?RyApPxRjkAHaTrQsNuEqbYPYmVaa29k+M9nlz6Xt3edUxG9i5MVJ8sfd6aR8?= =?us-ascii?Q?8v/9zIo8rZVpvYe+5RXRpkLEdPGy1uNliBUN5wHSSGIe1lpHuRkTlM7dytet?= =?us-ascii?Q?iKRPbghhOBSAIvWUW9sOkUAQEOfhdeM3O8NBoi749S33pXJZBipiFI+gW1bR?= =?us-ascii?Q?08rXOpGFIcXwdIqJ+/R7Zg6wdZ8zqBsaxdzooKNzUbvbuyrzPypW6MSmFn6Z?= =?us-ascii?Q?PAqmlxkVkrqTKFR2eDHlHl2fkub8x1kq6GJa7OQFI4rG1pBjq74YH5ZoY8XD?= =?us-ascii?Q?2LSrL1owpiUe8MG8cPd5cYkD/l22RT3mOuGSo2jh6Jek8ay58VVeqZ8EB2xh?= =?us-ascii?Q?MN+AIvgbk4kmhgec9Sx+qxsVzXb/Bpr5WlL/mo7a3gWrfwgf7eHqRJa4tvT1?= =?us-ascii?Q?98/azBjrHJgpeXzB8EDdVfjQ6NBzcmnRP1BjXoEffxUUuOnJ0vIB6oqVZGb3?= =?us-ascii?Q?lmLwbjJZYTf+OKXYLnZ7eRmvEa0YRZadpBkbn7GrrXBy+/BSnNx4Ivu+1a5J?= =?us-ascii?Q?9VVvS9s6KSa2P4eAlYXnr5LokTYt50Vu0aZHRydrrfnTJ4f+jD6bFgsdWheu?= =?us-ascii?Q?w8ErVumbQhRc6LvmHJyTgukF8aenNAY8cGl0Le7uEi0=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR18MB2214.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f388c52-dddc-42c0-d162-08d8ba598b81 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2021 20:01:42.6542 (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: AdNNnHzZZ1CDdF+nKnDbZUOBSXugJJG1Yj8uikr8ejxBU1hlTxbQ1Gup2hRzL+LtKdrhgAo7+Ntu7PwoGkhZ6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB2343 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-16_12:2021-01-15, 2021-01-16 signatures=0 Subject: Re: [dpdk-dev] [EXT] Re: input port in mbuf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Hi, Sorry for rearising this issue again, please check my comments inline Liron Himi -----Original Message----- From: Stephen Hemminger =20 Sent: Wednesday, 6 May 2020 23:24 To: Liron Himi Cc: dpdk-dev Subject: Re: [EXT] Re: [dpdk-dev] input port in mbuf On Wed, 6 May 2020 20:17:20 +0000 Liron Himi wrote: > For performance optimizations, we need to know the input DPDK port as aft= er the buffer was transmitted via our ethdev driver instead of release it b= ack to the memory-pool we can release it to the originated HW pool of the i= nput port.=20 But you can't be sure where the mbuf came from. It could be a receive on any vendors driver, or it could be from a private = pool that is used for transmit, or anywhere. [L.H.] I'm only referring to PP2->PP2 flow on an Armada platform. For any o= ther flow the transmitted buffer will be returned to its 'mb'. Please reconsider the real nature here; the world is not testpmd, l2fwd, l3= fwd etc. These are the kind of optimizations that break real applications and cause = more trouble than the benefit for one silly benchmark. [L.H.] I don't want to influence application usage, this is why I asked if = there is a location in the mbuf where a driver can put its own info. Like t= he private area for the application, but just for the input driver. And if there is no such location right now, will it be acceptable to introd= uce such one?