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 6F8DBA0613 for ; Wed, 25 Sep 2019 06:02:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 71D1B2BE6; Wed, 25 Sep 2019 06:02:05 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1CB482BE5 for ; Wed, 25 Sep 2019 06:02:03 +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 x8P41spm032110; Tue, 24 Sep 2019 21:02:02 -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=DuvfoOxRrPFue9XUDC86FcGZXOPlkkmT6NmyH8iFUWc=; b=P58PqTuIQA4PkvtPxgzQ91+0pujfyUZJTuwV3eE+6S0IYJR7FH5owjvYt+pbr7pNWEWS JU4HkOoPVCwPGVfmf7lUzrVpYkx0mT+xmSr/p/xUdg0FCxiEbMUReiCJ56tQ27roeOuG sPRtMQbqVeQp5/yhWUYI2W2XJdVLn6rKl2P/vCXv4Qh6yA8jW0lhJMo5UatV6ecXPS4P RAe9xzn9T27wogDr2wB72EJ7XjrY9MaasiU7p36bBh9qQTCvobRaZVU3gLrfhmyg9YWl HUVpTOqW9VrZVRuayWi+FXSqZ6sRE15wBcfLceBVgKLRYbgFDW2fAhDj+JS0N9xes04+ vw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2v80ur801e-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 24 Sep 2019 21:02:01 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 24 Sep 2019 21:00:17 -0700 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (104.47.41.50) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 24 Sep 2019 21:00:17 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jpx2mSuK+YkxDBCdxgDUMpVlnw2afor7nNNRU7kOLy1vHgdjp4+heDVTjyMwKhM9co6dWkgPvSoXgZ01HD5lKGS34dr1cb34siUg7Rx6FgATcuF9vaph3o1hntJVRzEu4gNX0p5rOkTkDUoZc7qVkGyh7SSpcHxVtdw5YrwPO2uRTyJwmCup9FLI4V4vr9wI/xmitHtSom1ej4XHngVItgLstZbNUPdthQreGJdEE6AmW77wAWqxyp5lFl5KSq5r5rB+s7QO0D0cvDhyPIeYFC6nE1/LovrcmJymKyOvGEi8/WFgeA2E8+eIfB6nMyOpzMs58vdCn4glbhsxTPDg6g== 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=DuvfoOxRrPFue9XUDC86FcGZXOPlkkmT6NmyH8iFUWc=; b=Lc7Nxh5diTAr42V4cC+/92YEtPRQfYU95dsw9JonBpdlUaY3WIrplIc3X2fh9uSg2ia+W0I5NMX8fQpORU0fJtma5wxOrioXd1XO037VxB7KrMAGTvZw7m9IgXXvwNqb6QzlgxO9W2ioFgMtqx1qROEwAaJZOL3fIIO4lo8FjO5xM0V9KMGVSeN/FL8FzQYfXJ5GP1RA9mCLQvyCFuw6gAPlcidNi4Aw9xtbDeBonE91jQ04PXc1NECerZzMOhqo/ow+sukJCq4FUJit0WSVgpOk6KHr4JGhWQYrddhy6eyPBHuXHMn3+z4bGeM7fMnI+nnhwO8NUZf54Ly5xyxgLg== 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=DuvfoOxRrPFue9XUDC86FcGZXOPlkkmT6NmyH8iFUWc=; b=wfYwbe8iFbLzm8PCuip020NHOwxAYvDAGWM1dM3nXunGQ/dY7YTbABl5nFkEsqBtYOC3Aa961aWcxeFrXD353FyRoaP02H+JPM1CgvxiQONn5xT89Z8mrHTOnBRs5zgXPsaw9dy4DmawJSh01VgduJljg0soOT0skVUhDICEz2w= Received: from MWHPR18MB1645.namprd18.prod.outlook.com (10.173.241.137) by MWHPR18MB1280.namprd18.prod.outlook.com (10.175.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.18; Wed, 25 Sep 2019 04:00:14 +0000 Received: from MWHPR18MB1645.namprd18.prod.outlook.com ([fe80::e0e3:ce2c:587a:d607]) by MWHPR18MB1645.namprd18.prod.outlook.com ([fe80::e0e3:ce2c:587a:d607%7]) with mapi id 15.20.2284.023; Wed, 25 Sep 2019 04:00:14 +0000 From: Vamsi Krishna Attunuru To: Vamsi Krishna Attunuru , "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" Thread-Topic: [dpdk-dev] [PATCH v10 0/5] kni: add IOVA=VA support Thread-Index: AQHVU/myKT4BKgAuPEmOyX1G6ACmZ6c8A2Og Date: Wed, 25 Sep 2019 04:00:14 +0000 Message-ID: References: <20190729121313.30639-2-vattunuru@marvell.com> <20190816061252.17214-1-vattunuru@marvell.com> In-Reply-To: <20190816061252.17214-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: 52272e53-b0d0-4dc4-20f9-08d7416cde98 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:MWHPR18MB1280; x-ms-traffictypediagnostic: MWHPR18MB1280: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 01713B2841 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(396003)(366004)(39860400002)(346002)(13464003)(189003)(199004)(486006)(7736002)(25786009)(476003)(14454004)(8936002)(305945005)(74316002)(8676002)(76116006)(4326008)(55016002)(478600001)(71200400001)(64756008)(71190400001)(66946007)(2906002)(86362001)(66556008)(14444005)(81166006)(52536014)(66476007)(81156014)(66066001)(107886003)(256004)(6116002)(53546011)(5660300002)(66446008)(26005)(99286004)(316002)(54906003)(102836004)(76176011)(55236004)(7696005)(229853002)(186003)(6246003)(3846002)(446003)(9686003)(110136005)(6506007)(6436002)(4743002)(33656002)(2501003)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR18MB1280; H:MWHPR18MB1645.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: PxzLLu1vhulDLBWeb2N18kz0rnEwgRphMvM+bf737JitfgyGVN/UKtOf+PxXUzo9PGOGIGoF239iG11lV3+mBNCYMn0C1DKoywQxaLj2bawP+/OwcicobFkoKFkaKHO5uztVCdaHyKibrhjQDKEZCNnbL3zNdqkO70CRglL+LP7DMKDXcCE25SF75WpFmhpaRia5kRMJGJNf+ZvJEwDGHZjGfyWtixEmbBMMPZH/NAQRQBFzICr46UokadD9c+6Q7sFpzoMsuaBec6I1QKlVJyPa1gU9ujFY6W+0rlXjmx7Y4231DBbPZ6oV2D/UYHXLJRN1v1U8goPHe77aGwgM8JrwynVCplVcnrxmFbyvUDB6wdZJazkPc8+jThClP50TBjeVVJr8Tg+mry04Gpq8bSaGd9PqSggezk5tc2cSWJQ= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 52272e53-b0d0-4dc4-20f9-08d7416cde98 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2019 04:00:14.1950 (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: E/+mVEsC4TTpW+tJNZ4nt/B3Ub/5Z2BxmAAKSOZa0IdtSeVVOnydNOGYHDFJllNhyy6LPnBTkoYLIHXOzyhj4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR18MB1280 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-09-25_02:2019-09-23,2019-09-25 signatures=0 Subject: Re: [dpdk-dev] [PATCH v10 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. -----Original Message----- From: vattunuru@marvell.com =20 Sent: Friday, August 16, 2019 11:43 AM To: dev@dpdk.org Cc: thomas@monjalon.net; Jerin Jacob Kollanukkaran ; ol= ivier.matz@6wind.com; ferruh.yigit@intel.com; anatoly.burakov@intel.com; ar= ybchenko@solarflare.com; Kiran Kumar Kokkilagadda = ; Vamsi Krishna Attunuru Subject: [dpdk-dev] [PATCH v10 0/5] kni: add IOVA=3DVA support=20 From: Vamsi Attunuru --- V10 Changes: * Fixed function return code on failure when min_chunk_size > pg_sz. * Marked new mempool populate routine as EXPERIMENTAL. V9 Changes: * Used rte_mempool_ops_calc_mem_size() instead of default handler in the ne= w mempool populate routine. * Check min_chunk_size and return values. * Removed ethdev_info memset to '0' and moved pci dev_info populate into kni_dev_pci_addr_get() routine. * Addressed misc. review comments. 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 p= age size to make sure all mempool objects reside on a page. * Update release notes and map files. V7 Changes: * Removed previously proposed mempool flag and made those page boundary che= cks default in mempool populate() except for the objects size bigger than t= he size of page. * Removed KNI example application related changes since pool related requir= ement is taken care in mempool lib. * All PCI dev related info is moved under rte_eal_iova_mode() =3D=3D VA che= ck. * Added wrapper functions in KNI module to hide IOVA checks and make addres= s translation routines more readable. * Updated IOVA mode checks that enforcing IOVA=3DPA mode when IOVA=3DVA mod= e is enabled. V6 Changes: * Added new mempool flag to ensure mbuf memory is not scattered across page= boundaries. * Added KNI kernel module required PCI device information. * Modified KNI example application to create mempool with new mempool flag. V5 changes: * Fixed build issue with 32b build V4 changes: * Fixed build issues with older kernel versions * This approach will only work with kernel above 4.4.0 V3 Changes: * Add new approach to work kni with IOVA=3DVA mode using iommu_iova_to_phys= API. Kiran Kumar K (1): kni: add IOVA=3DVA support in KNI module Vamsi Attunuru (4): mempool: populate mempool with the page sized chunks kni: add IOVA=3DVA support in KNI lib kni: add app specific mempool create and free routines kni: modify IOVA mode checks to support VA doc/guides/prog_guide/kernel_nic_interface.rst | 8 ++ doc/guides/rel_notes/release_19_11.rst | 5 ++ examples/kni/main.c | 5 +- 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 | 95 +++++++++++++++++++= ++-- lib/librte_kni/rte_kni.h | 48 ++++++++++++ lib/librte_kni/rte_kni_version.map | 2 + lib/librte_mempool/rte_mempool.c | 69 ++++++++++++++++ lib/librte_mempool/rte_mempool.h | 20 +++++ lib/librte_mempool/rte_mempool_version.map | 1 + 17 files changed, 378 insertions(+), 29 deletions(-) -- 2.8.4