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 73B16A034E; Thu, 7 May 2020 00:10:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8DEC91DB52; Thu, 7 May 2020 00:10:08 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id EA1F41DB4E for ; Thu, 7 May 2020 00:10:06 +0200 (CEST) IronPort-SDR: y9mp7B0fTQy58F19YMn/xFSc55kB0uEoI+WP9C3ReXoWjKd4lIIEz2WBiadvFNt2FVNUilf4sj MRCoPEo90W1A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 15:10:06 -0700 IronPort-SDR: 6NlpapxoWzw1F03DptOvLT6CaWabU1ZpzTMpBdFFwB/F4pTRo6l8T5aLvxA97YvUTnI5p00yX8 gu6SZ8csFMUg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,360,1583222400"; d="scan'208";a="249075850" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga007.jf.intel.com with ESMTP; 06 May 2020 15:10:04 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 6 May 2020 15:10:04 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 6 May 2020 15:10:03 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 6 May 2020 15:10:03 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.172) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 6 May 2020 15:10:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ckT76HncH+rDCYbJo1oD1+VaaDCarwKKjQnHdjHL6e4jNVwBQ+Zzv0Y99VLrjtKPJj8mBQKgfTu2G7fRAWK6NqTT1nxxXaTJRG2g880+WcoV9o6ei0Vs4dDJ6U092hxVkP2GXdbNH6dUXFbv1wI5vtc9y3/eGFgK8F0s5bPmu+ekw/OFq/f1Wv4djYbsmdOdTKHn0VjiX57htWd5IKr2/MqO5n1STpFXOXKNXjdKfy327ig74h3fNi2UDli8ilaxvorVjupEWKNLkoNd/aR3J+QkJlGfjhlckRZ1px6pvCMf8Uf14Nbl+rDbl5mDdbGbvrtg38ZutkKv94BDbWxatw== 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=qX46pQddPIWvjra24tSyjIEKvC3K2NRnqc42nxpROtY=; b=h12s4d6JrM3jr/hsFnf9CtjiE9fmoT2NvxOXGiSn3BIz94kAFlVr0g0m6hpIwCbbbEtSv+MSrayVRw+pJ+Fz+DT8zxHD4BBHjXJRt0Ap8XeH9R21MNYDi0vE/Dmw7gBVx5+JXkOWb7tk1LtLWIgrQJe8kCanzbzCoPde7SM3ONlM+Gv4WPwdqGbCZM0ce94kVhOzdCABe9bix5LYbqL4iNfIUNdo/1cTCuuWhBBXS1tEPacKvmuYYZnSGc+4DETkiIzG895K7k2QeugVkRo2pVPvkv+RLfeEvv2t/42DG/bvutGY6RBA/e7HFD8o9nKkKVaNKnOiVXd5Zsu9pzBM6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qX46pQddPIWvjra24tSyjIEKvC3K2NRnqc42nxpROtY=; b=HSixRGv5BRjfs0wPqOeZj39EfWsaB/4B1b8qyKFX8TOetZJBkEBD5wFezxET8nSM9ReK69neKQEunpSHQK7AaQtz30LQ5uc+rkwXsHYiPgI8RSDDb4Ii030GY0Optjldm3ia0egm0aK0UbsbbYAkiivOz4KdvV7/dPniNxZgih4= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB3528.namprd11.prod.outlook.com (2603:10b6:a03:87::26) 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 22:10:01 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4%6]) with mapi id 15.20.2958.030; Wed, 6 May 2020 22:10:01 +0000 From: "Ananyev, Konstantin" To: Liron Himi , Stephen Hemminger CC: dpdk-dev Thread-Topic: [dpdk-dev] [EXT] Re: input port in mbuf Thread-Index: AQHWI99ri0ajSGkdUU+v+hTWfueyyaibfQqAgAAB5wCAAB6/oA== Date: Wed, 6 May 2020 22:10:01 +0000 Message-ID: References: <20200506124258.69b138e4@hermes.lan> <20200506131031.6379f80a@hermes.lan> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.179] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 11c18076-6f1c-4c39-8fb9-08d7f20a391c x-ms-traffictypediagnostic: BYAPR11MB3528: 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: 8dXsSnGwdCNgqMGjjiSgYQ8TCLDVJAw6B5aKKtgzcnqcny9nSOngo11bbn8GV8LELVUaplWezTQQxJ1xd7lzoNEU89dB506zsAvPxPU9ofbuKGZB3QfYQG+72soGMtO0VgCZyPolUSLxM7AScr++Q+gHy2ttWXThYSdgFkZv0foTZtlpqE9UUnz4PEHpe2yFYWxqHVDpju4W+F395MUwD5/zpsqvDu7bUEReWABuSVClFfDzpe5L3ybdODyOFSTCudFP6ZmEdI5nBp5CbOC3St8PWj92en78ZS0Zu7TqVtHpkJAF6iOwqc7jgmxRmOjwm9yoo5TLB7l/ZazHSsQYN2sMSC0tbpishbIOWzuzwTtjyA+roPoCCgF1os0hn3B874LWgqRT0REww8i4xkD3+qr9XEYdkJ1jLzGLclIxHMtOfbCBgP2yzsOvKn1NkZWipDGqM5WEaRmGnuBgw01UiCjJ1NoqlI4arMAbLY286BaqYnsuU6glAS5ysKRqEXCPew5QKudk8UNi7DXxpWqfIA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(39860400002)(346002)(376002)(366004)(396003)(136003)(33430700001)(66946007)(76116006)(66446008)(66476007)(316002)(66556008)(86362001)(53546011)(6506007)(52536014)(110136005)(4326008)(9686003)(55016002)(2906002)(5660300002)(64756008)(33656002)(71200400001)(478600001)(8936002)(186003)(8676002)(26005)(7696005)(33440700001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: /3AwQxtK3r3YEIh3kU+KjI+u1pcLAJysju10790EAikWPjDRKXVgkcFCSX0c5tcEcuVu46Pk0Psru9NeqSAWeEwNLpUwrLylNQRDYhn54Wzqbn39AkQM9jib1j/fpfCdoWtfp+VGAcFYSEV+nkLPr1h/JyV0ear1BrgY2Qs728Oap4PGRgzJQStpVIzF57YbotKF0sZRibeAb/pmr/ILDj1BqaeOdBTfidTfo9xaQgQJj4KmmcrgxoGh2J5I6UlOClZxQBQF+qN0hqgJLuRXshIfraQo+Cwu2cCyXAytsYPSuC/eL0nh7K+IolUYrzZ6qTSqjEbXMXlGSlUnxUVYPHNYV9PjQ06sMDNEQe3ZRtv7cZv8MSo9VAmLmdrMGf2EC86/fD09vF5nQccHJ/hrhp73CCflLvQkwxH2vUYuFj82p4hTG5CjNuOVeuBMXYmdhU/heAqw4DB4HrPRayM9Mn6czSK4DOh4k/n5HIC25zSv01wI5EqTW480MxVmFN9x1JlW/NNfwm8b6OM7Y1jhjEmnVMpbPXnj9hyT+gR7dRI3W/CYxUAwpve4Cx9s109kYugjVWzxQtVaSJxbEbIM/NZLBa7Y1N3n0uwjpFtRQCgVkw06eL6FQjYyeqoKHB3DWMW64+TKEP4WOGGvcFVLiYNVzpeKAfDlCvazQWHpU3Lpc/gz5sC0hSvr9YWbl4sbFHr7XcodYVurCoX/lBAJotAHCZ7nNAfQXfEGfI2SfJh3j8P6OheEezo5ldUEqFOdyBHimyc7B/suvkbNsDySReNhLoDiZSwEOPotkzLWknhc14GKEX3eIQso5zfp5BPM x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 11c18076-6f1c-4c39-8fb9-08d7f20a391c X-MS-Exchange-CrossTenant-originalarrivaltime: 06 May 2020 22:10:01.6753 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XiAP65dN5LVI/RVfWyETNlGsooTWNnEkKn3uLfCo7mFyCd5x1aMrfEhC7/SeeRCDFrbGNa4f2NdcfeMm+8ncJ27CRapb+etpMomHyYm4rqw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3528 X-OriginatorOrg: intel.com 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 aft= er the buffer was transmitted via our ethdev driver instead of > release it back to the memory-pool we can release it to the originated HW= pool of the input port. Then I suppose, you can have your own mempool driver, and do whatever you like there. >=20 >=20 > Regards, > Liron >=20 > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, 6 May 2020 23:11 > To: Liron Himi > Cc: dpdk-dev > Subject: Re: [EXT] Re: [dpdk-dev] input port in mbuf >=20 > On Wed, 6 May 2020 19:48:26 +0000 > Liron Himi wrote: >=20 > > Fine. Is there another location or option to save this information? > > > > Regards, > > Liron > > > > -----Original Message----- > > From: Stephen Hemminger > > Sent: Wednesday, 6 May 2020 22:43 > > To: Liron Himi > > Cc: dpdk-dev > > Subject: [EXT] Re: [dpdk-dev] input port in mbuf > > > > External Email > > > > ---------------------------------------------------------------------- > > On Wed, 6 May 2020 19:21:30 +0000 > > Liron Himi wrote: > > > > > Hi, > > > > > > We need to save the input port in the mbuf in order to return the buf= fer to the right hw pool. > > > For now we use the 'port' in the mbuf as it is supposed to be for thi= s exact purpose. > > > But we noticed that some applications are override it with the destin= ation port. > > > > > > What should be the right behavior? > > > is there another location that that this information can be stored an= d read only by the ethdev drivers? > > > > > > Regards, > > > Liron > > > > > > > There is no requirement that input port is unmodified by the applicatio= n. >=20 > The memory pool is already in the mbuf, should go there.