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 B558FA046B for ; Wed, 24 Jul 2019 09:14:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C98781C11B; Wed, 24 Jul 2019 09:14:53 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 2E5611C113 for ; Wed, 24 Jul 2019 09:14:52 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6O79mTu002298; Wed, 24 Jul 2019 00:14:51 -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=mP7JvYsprJOp+Yh700d0NFP2viclrgt2GVp4z2AtWHk=; b=LzA8GZdfIr9Cl9qj/6KT6ZyLHuA6xqCuVfPvSru7XhzSC+ddcUzOu1WV//sWh1tZh6qI B4kJjhF0EyvrDj0zV/m9NNqmTvTJcyd07pIV4sXpzdAAiAEJGn8A1K8oTeKOWp1gsL4E dqZ5wDeFZ2WrH7G1vDg0EGac1X/onCbmZwYAUDcVjRrejGbULRxi0avS20tXM0Fx0jMM HWvjmUqxditXyKdxDI3L/H1WymLDAA4tmoTD4l49HWvd7rFSQt0E2GgdP7UxubEAq+Tb Rp8rna2a32BAakalPaJTm0daz6oP86v4b67vuJT1F6GnJFqL+LdnYFNiTdcIxYtKpwEq 0Q== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2tx624tuh8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 24 Jul 2019 00:14:51 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 24 Jul 2019 00:14:49 -0700 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (104.47.34.58) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 24 Jul 2019 00:14:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j0SvDRcimKaMvkLG75byvWhVQdfk8IhV1aY5ka/NABygO+raN5bAgfp3D00rBdZvXNBJGgjDx5Q0UulbIVrjQSHHw33yWoP8PrNQRAB0jwHhWja+Txxzzqn+D98zQcj6KEjf5hWn9OOWUOTljjuzjAAXgUJr3jtzkZaFNLUymUOpnGIxlU5KWfwYVmobiyr5s1Oye5cNHFDTuwbWztIRYKfT8X4PNcT+Bs5R6H1Jbhh1XIkNtK/JMXV4qYg6KfSBMVb4pWjAKj0AKgqA3r+vakX9kyEiYHFkqWrSc1LWbB3ViiLtTzdkuJv49FoRKxB/EBznCBOisCX/Un4ZmqDdvA== 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=mP7JvYsprJOp+Yh700d0NFP2viclrgt2GVp4z2AtWHk=; b=KY6SsLnasb9IOMGS7PVNTRYqjmb6j0269QezPOJLHVjOSjY55zEbAPUKIiUiNl+fbIRBmeFYZieT5wS10MxN8fNIM5/GIWwugCmwUbqPMCmGmF4xT7ZZH9C3T7UUGLcTllcSmZicnEsPsi72oL32lw4NYdjUOiVEI+u+feYfjGzFJm/EG5FrQ9lhJ8Alvw0LGVS+bo+7lHYqSRg338zXassUTyGidJ/3NMFotmFug3XVHH7Brd8MsYeHUWEReHDPX6frs/dJNIXeIVFN6JDbHcRliHmRLyzKTlY2o0zilSa+w3Tp4SWHFrmBTltSHnrVuOk4ugD93Avl0qgEyYtuGg== 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=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mP7JvYsprJOp+Yh700d0NFP2viclrgt2GVp4z2AtWHk=; b=tuPjFIelC7Bnh1j09iCHG/qU5AANo+S9492DIHwXyIQiXEbZSU03Lc2IEu+daW78GSToyEhRBKvAq/1CuE8S6XRVofzilN/Er32KV8Ik1qT8FvI4ZrO8qXerfzzRu3V5NCaobfqJ2PbiyRaoFwl1/JlCbwAnPCurWh7XGFNOjkE= Received: from CH2PR18MB3381.namprd18.prod.outlook.com (52.132.246.204) by CH2PR18MB3127.namprd18.prod.outlook.com (52.132.244.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.16; Wed, 24 Jul 2019 07:14:48 +0000 Received: from CH2PR18MB3381.namprd18.prod.outlook.com ([fe80::189c:3889:b207:8922]) by CH2PR18MB3381.namprd18.prod.outlook.com ([fe80::189c:3889:b207:8922%5]) with mapi id 15.20.2115.005; Wed, 24 Jul 2019 07:14:48 +0000 From: Vamsi Krishna Attunuru To: "ferruh.yigit@intel.com" , "olivier.matz@6wind.com" , "anatoly.burakov@intel.com" CC: "thomas@monjalon.net" , Jerin Jacob Kollanukkaran , "arybchenko@solarflare.com" , Kiran Kumar Kokkilagadda , "dev@dpdk.org" , "Vamsi Krishna Attunuru" Thread-Topic: [dpdk-dev] [PATCH v8 0/5] kni: add IOVA=VA support Thread-Index: AQHVQRji3PdqFNt9XU6wiUEuR8lf2abZW9SQ Date: Wed, 24 Jul 2019 07:14:48 +0000 Message-ID: References: <20190717090408.13717-1-vattunuru@marvell.com> <20190723053821.30227-1-vattunuru@marvell.com> In-Reply-To: <20190723053821.30227-1-vattunuru@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5734175a-e591-470a-1a5f-08d710069cf0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:CH2PR18MB3127; x-ms-traffictypediagnostic: CH2PR18MB3127: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-forefront-prvs: 0108A997B2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(346002)(39860400002)(396003)(366004)(189003)(199004)(13464003)(6116002)(6246003)(53546011)(2501003)(86362001)(2201001)(3846002)(316002)(99286004)(68736007)(7736002)(110136005)(81166006)(102836004)(54906003)(446003)(107886003)(55236004)(4326008)(11346002)(6506007)(53936002)(25786009)(33656002)(26005)(9686003)(186003)(476003)(55016002)(66946007)(66446008)(64756008)(66556008)(6436002)(76176011)(7696005)(76116006)(81156014)(2906002)(486006)(305945005)(66476007)(14454004)(52536014)(74316002)(5660300002)(66066001)(71190400001)(71200400001)(14444005)(4743002)(229853002)(8676002)(256004)(8936002)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:CH2PR18MB3127; H:CH2PR18MB3381.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hMMkqNpQ1UZ+AMj6J5rrtpIqwqnekEu6+9P4PK2pRKWZnqFftTUGnu4MzQUgy5QFrJCxvhGzOHCq2I/ByiBVDO9sOp1VwdDSR6cjayk1LkVqJFYd3tNcWS2r1wlLfXkTJXaMGMyfZv+YkZrikSTFcdFJWH3Qt2YO26GKDOENks4AMDnk+CYshsWNZzsjufk21CONwjgA/h1Do0Uto0K+4d0GTooCmkce+B5gSygVB/PzpLmVsOF88elEq9WbXhPQZIlbV7T8xs/GffrHNfVzFW0jhvDaMU0ZF9jLfVP4saNzKqHbVdBpqznpRaxXN/15FrVmbs4Snj8Dr8ADfW/fxI1Asrd2qBgKzO+kV0Gb1R2mGABPOwhd9wrwucI9MsqbWkFDdTtXvTm0irAQyR03JNVETvbhGxjJtlqmYy7/hDU= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5734175a-e591-470a-1a5f-08d710069cf0 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2019 07:14:48.3804 (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: vattunuru@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR18MB3127 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-24_02:2019-07-23,2019-07-24 signatures=0 Subject: Re: [dpdk-dev] [PATCH v8 0/5] kni: add IOVA=VA support 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" Ping, Req for V8 review comments.. > -----Original Message----- > From: vattunuru@marvell.com > Sent: Tuesday, July 23, 2019 11:08 AM > To: dev@dpdk.org > Cc: thomas@monjalon.net; Jerin Jacob Kollanukkaran ; > olivier.matz@6wind.com; ferruh.yigit@intel.com; anatoly.burakov@intel.com= ; > arybchenko@solarflare.com; Kiran Kumar Kokkilagadda > ; Vamsi Krishna Attunuru > > Subject: [dpdk-dev] [PATCH v8 0/5] kni: add IOVA=3DVA support >=20 > From: Vamsi Attunuru >=20 > --- > V8 Changes: > * Remove default mempool populate() routine changes. > * Add kni app specific mempool create & free routines. > * Add new mempool populate routine to allocate page-aligned memzones with > page size to make sure all mempool objects reside on a page. > * Update release notes and map files. >=20 > V7 Changes: > * Removed previously proposed mempool flag and made those page boundary > checks default in mempool populate() except for the objects size bigger t= han the > size of page. > * Removed KNI example application related changes since pool related > requirement is taken care in mempool lib. > * All PCI dev related info is moved under rte_eal_iova_mode() =3D=3D VA c= heck. > * Added wrapper functions in KNI module to hide IOVA checks and make addr= ess > translation routines more readable. > * Updated IOVA mode checks that enforcing IOVA=3DPA mode when IOVA=3DVA > mode is enabled. >=20 > V6 Changes: > * Added new mempool flag to ensure mbuf memory is not scattered across pa= ge > boundaries. > * Added KNI kernel module required PCI device information. > * Modified KNI example application to create mempool with new mempool fla= g. >=20 > V5 changes: > * Fixed build issue with 32b build >=20 > V4 changes: > * Fixed build issues with older kernel versions > * This approach will only work with kernel above 4.4.0 >=20 > V3 Changes: > * Add new approach to work kni with IOVA=3DVA mode using > iommu_iova_to_phys API. >=20 > Kiran Kumar K (1): > kni: add IOVA=3DVA support in KNI module >=20 > Vamsi Attunuru (4): > mempool: populate mempool with page sized chunks of memory > add IOVA -VA support in KNI lib > kni: add app specific mempool create & free routine > kni: modify IOVA mode checks to support VA >=20 > doc/guides/prog_guide/kernel_nic_interface.rst | 8 ++ > doc/guides/rel_notes/release_19_08.rst | 6 ++ > examples/kni/main.c | 6 +- > kernel/linux/kni/compat.h | 4 + > kernel/linux/kni/kni_dev.h | 4 + > kernel/linux/kni/kni_misc.c | 71 +++++++++++++-- > kernel/linux/kni/kni_net.c | 59 ++++++++++--- > lib/librte_eal/linux/eal/eal.c | 4 +- > lib/librte_eal/linux/eal/include/rte_kni_common.h | 8 ++ > lib/librte_kni/Makefile | 2 + > lib/librte_kni/meson.build | 2 + > lib/librte_kni/rte_kni.c | 100 ++++++++++++++++= ++++-- > lib/librte_kni/rte_kni.h | 49 +++++++++++ > lib/librte_kni/rte_kni_version.map | 2 + > lib/librte_mempool/rte_mempool.c | 59 +++++++++++++ > lib/librte_mempool/rte_mempool.h | 17 ++++ > lib/librte_mempool/rte_mempool_version.map | 1 + > 17 files changed, 373 insertions(+), 29 deletions(-) >=20 > -- > 2.8.4