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 7A10FA2F6B for ; Tue, 8 Oct 2019 07:08:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 40B431BFFB; Tue, 8 Oct 2019 07:08:54 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 10C0E1BFEE for ; Tue, 8 Oct 2019 07:08: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 x9855Ngk020779; Mon, 7 Oct 2019 22:08:52 -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=hcOVP39fqAusXqysGJcia5Dr13MEQOGtZLb07zo1tk8=; b=xfQiEBD3vxC9tGCepxr3m38tDBmhrCFa+Eu6lAlP4pLDAH74/ZuULAA5btIpQwVCzmrE qutvDdvaJ91e/quIGfeZvIDoXU2bWCiCQiohWQE4qV25oH8b7um5Ec21ygFQosE00xLM VCbNKYW4g0caIVGFHqCdDdBgZYAs1G8JVSWsGPVP/JhOEBHpr78L8w1FugwXGqKzGfYx 2XBawsiqtX39ttajqqQhRzW+R6LWcI+tUkxYc0+w0rRj0SDxz3eYC/HiCA8Tmarlvlzp PYPjuYdghHlICeidNYjRqwkeyEG7hbL2+yd5WeK/hdtyeQkFxp4XEk2aN2K39QooUXxd /g== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2vetpn10bv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 07 Oct 2019 22:08:51 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 7 Oct 2019 22:08:50 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.57) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 7 Oct 2019 22:08:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lXw+7A85JmTcGqkWbNstfmwW61mEbvx5db26zjUw0wzyAzriy++Oh/7GIBuNdCczzi6bHGePGHw54Mkm28nb6Aicgb4Mos51QMe5QxvDyjHTMgRxqw/MVUlt6nYGisXa/Rlwp5hPO7Lkd1skHUl9iLqNMl2bQRyXK1cy/9fXGPy16cki7yL9m+gc7wRU9RDrJ5BoG24HHb4oSIMU04wAfo24f0WJRcxWBvUsYqskcxCG+goGgBxcGX+bUCm+pZYWHcvnhNRAIzxBYbaJzhvUbOjjy3zRfckQveCuwdx07aT6mLxi3q/FXS75Q45AXj+Nwh8rQBHba7XdYgQ/0APw6Q== 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=hcOVP39fqAusXqysGJcia5Dr13MEQOGtZLb07zo1tk8=; b=ZXBEUdl0jQwfJNqGgWmKDDzAME0J0LzEUoP/ZelJ/nzNFhzMEWwbrEferJZLkCnv3ckbl4zIdzMxa2d7cAI5Y2TVsYCXeoRxv6ayMjqLbwhJDDnP94SVEFFsUfZtLeIzbYWmJDqsGLwQ/NMer7tPi/pNe45J2kl6rGIn3a2kji//EpK5qnMrC0oPhiIPq4ZQX02z7QJWSoyz68yO0bGkv7QAqGu2h5ilK7meuwBmDhUubfqShi9XPpJENjRt1Y1WewrWJaauj5IU7qm+4rCjquylBnfy4L1Cb9HE5eUfdhDjbdpGzHh85DSxlDoLT4RfQon7UTBGN5i/lclx4F3k5w== 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=hcOVP39fqAusXqysGJcia5Dr13MEQOGtZLb07zo1tk8=; b=WDP4NVaNqqt2lfUSiAShnR7gDVFF4LgTuva+KI0Bgz6DnJJZrb4Rmx5dkKoTTbs1lx2taHLXSrh1YJovqTnS3laZMDF0Jm/Uy6WWM3ubEGHQFhoLoRVjsBoPPGgMukmI208KNvQw5haoH0GViwKOsGFrvqxBYuavchANrvFKmeU= Received: from MWHPR18MB1645.namprd18.prod.outlook.com (10.173.241.137) by MWHPR18MB1405.namprd18.prod.outlook.com (10.175.4.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2327.24; Tue, 8 Oct 2019 05:08:48 +0000 Received: from MWHPR18MB1645.namprd18.prod.outlook.com ([fe80::b4fd:71ce:2bc4:7afb]) by MWHPR18MB1645.namprd18.prod.outlook.com ([fe80::b4fd:71ce:2bc4:7afb%3]) with mapi id 15.20.2327.026; Tue, 8 Oct 2019 05:08:48 +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/myKT4BKgAuPEmOyX1G6ACmZ6c8A2OggBSBfgA= Date: Tue, 8 Oct 2019 05:08:48 +0000 Message-ID: References: <20190729121313.30639-2-vattunuru@marvell.com> <20190816061252.17214-1-vattunuru@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2405:204:6081:8c9f:e0a6:9100:f50:6e78] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 088bee90-a8d1-4eeb-88b3-08d74bad9a6b x-ms-traffictypediagnostic: MWHPR18MB1405: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 01842C458A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(376002)(366004)(396003)(136003)(189003)(199004)(13464003)(446003)(9686003)(55016002)(76116006)(52536014)(476003)(66476007)(66446008)(66946007)(66556008)(64756008)(11346002)(229853002)(486006)(25786009)(81156014)(33656002)(71190400001)(81166006)(8936002)(71200400001)(107886003)(6116002)(8676002)(6246003)(6436002)(7696005)(46003)(76176011)(53546011)(6506007)(54906003)(86362001)(110136005)(2906002)(102836004)(4743002)(186003)(316002)(2501003)(74316002)(7736002)(305945005)(99286004)(478600001)(256004)(14444005)(5660300002)(14454004)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR18MB1405; 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: BCL:0; x-microsoft-antispam-message-info: laaAHIPPkC/tGuA6UXJxD+quH0WfdDd9onlrniDDZLa67wfQlzzW0H/dIjvPDJnjGVnJnrSaZd7jN/6o3Y7dfNef1HT76PBYmFP98gm3v7CY1ZxsHmOzb92+mfuLNzpUnS76HxR0B9nK9cQbhiib8mJb5zAQrKfoN8SsXPiKo1+YBgnqyxWuPvpqr7B4uA0VCW6OiMRfbu+bfJk/TNRmvdBld2PWuBTNZt0Q2WbS1Dgb2B2bRt/FKQqEuQ/WUE4p+JYLJxGHnU6+HRtYRq5jEI7/anbPO4VdnuYMGMilJim6NtpDYc4NM5/YSWoZF681ypbDJcObdjb2X8YUeBBmGTNR8twUjkIcr86L2X/wTfvw4CKMQ4EVtM0SqJ3JpN1GR9YMfXuXBS9Qiyh1tZc9xvKZ9iBxrDDzvzjBnl4g7QE= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 088bee90-a8d1-4eeb-88b3-08d74bad9a6b X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2019 05:08:48.6689 (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: J4ibscDU6o3Dr1Gptw7nOB+Ct0LlD81xoOyf88OY+T6vU+Ob2ZxqxsoSmlFuy1ezdyPWxDAdCczpTc1mcXg2WA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR18MB1405 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-08_01:2019-10-07,2019-10-08 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" @All, we are expecting to merge this in 19.11 release and if any one have c= omments please respond. > -----Original Message----- > From: Vamsi Krishna Attunuru > Sent: Wednesday, September 25, 2019 9:30 AM > To: vattunuru@marvell.com; 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 > Subject: RE: [dpdk-dev] [PATCH v10 0/5] kni: add IOVA=3DVA support >=20 > PING. >=20 > -----Original Message----- > From: vattunuru@marvell.com > Sent: Friday, August 16, 2019 11:43 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 v10 0/5] kni: add IOVA=3DVA support >=20 > From: Vamsi Attunuru >=20 > --- > V10 Changes: > * Fixed function return code on failure when min_chunk_size > pg_sz. > * Marked new mempool populate routine as EXPERIMENTAL. >=20 > V9 Changes: > * Used rte_mempool_ops_calc_mem_size() instead of default handler in the > new 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. >=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 than 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 > address 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 > page boundaries. > * Added KNI kernel module required PCI device information. > * Modified KNI example application to create mempool with new mempool > flag. >=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 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 >=20 > 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(-) >=20 > -- > 2.8.4