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 83777A2EFC for ; Mon, 14 Oct 2019 06:06:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 67D8D1C18F; Mon, 14 Oct 2019 06:06:04 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 738C31C18E for ; Mon, 14 Oct 2019 06:06:02 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9E45D0a018067; Sun, 13 Oct 2019 21:06:00 -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=NJmaGh/WnjxXKqxAK97Exq0ZMlFlmI+ZC5RAxF8NZHQ=; b=hmC0Swo7waOi3kzp5l9XZxM/P8aYP6gJdkXbDYtqd4NJefMQ+t2e+CI/WWhX1CgAZkPa X2bFBQGA7QCwlaTmMaprUwFhz3fLoEwFAwS+cRKH3/yMogsWfpinIz3G1VKf/W0+Gryv 9oaj/mjbPfYHlCgnd9kb+CCgTBSjjeXDQCPm69h2+d+QG06kzACaynS+TQe7AFxk5He3 HZTPTJIYOg4A4Uxljq8aIF5km1MDOq4j7KP6lhULwrKJngq5sX3vd4EjQXen+oJmdJDW l6AtVgf7wEL/eBqd7ZqTIyK8QfbRkFAb3IKcbaCvK5FJLOIS0wRjg0OqUrapslpJ+Zoo zw== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2vkc6r50ys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 13 Oct 2019 21:06:00 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 13 Oct 2019 21:05:59 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (104.47.50.53) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sun, 13 Oct 2019 21:05:59 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BjkXc09KYrVuladzZ3du6tjw3g2Fk0hbLyNnmEuqblJqeVDCg5apqf5sX96bykEGseCwlUaKUt2tf3hqZTtFJVPi3gr+1b+J8yc93V6sjLX4K4Et4zrKhUwXbppqN+AwkIsIsP5KEoSLiXDKsu/+BBdo+E//Eo7Q0nqk8NMNORtAbjPIp9CwcdBQCkRMkQ4k0SMMmQKS09XB2sGvVlshcj0AXy9PAIAjZVNE5mfbjow+7DNVrCWr3XMwuh4CrCkLmcYi4BBIN4R1HnQS6FsJwsnFyEUpEkFV/9nFP6Id5rHqJTz3VWn3xJMr2fjdhQ960f528pVf1ZHkAUamg6jrbQ== 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=NJmaGh/WnjxXKqxAK97Exq0ZMlFlmI+ZC5RAxF8NZHQ=; b=krbE06mUg+n4DCynVPbMQ9lhhjqUvE6zmdOK6EVI5K2CplfS+M29//RnivFFwqXxBvzizm87MFerCCAfN3ToaC/WuEHV5ULL1T6N99EOpzPYj6RcNQu0oZVPBKFv2esTSpHskTCaOix9P725/VEKmEAsjBkELYH8IKvE7YP0SOlzuF23O+P7nSo2kn6zEOMJF4nfxgKv/IL3RjWn/tBz0fCi1NFjln0pbJxnaOFUoEPxB9bAT/zpURfcRRmpKq/4d57Nvpfa4oAZvwDo7Cq7MTUN4SZtoqt5Ccpa3uIi/jiO/T0ciBfIWg57LpPNs/CDH8Bw1GTo0RfGWs4ko/0L3Q== 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=NJmaGh/WnjxXKqxAK97Exq0ZMlFlmI+ZC5RAxF8NZHQ=; b=YilhStZiBrV57I5MbwbkzVqyB2qPJZB2Kx0izX5mCGb4FfBkvGJVxzFq/K7i4k9NWMr+hAVu8jHuVT3bGK8y7RZy+Pq60sqQNFOM2tXA6Ul5c9Fr088eHBJnYZIYT8feQa8NqFnaVWcPswmPWuaWIDlNQZA+TXJG6QmiQHgEC+M= Received: from MWHPR18MB1645.namprd18.prod.outlook.com (10.173.241.137) by MWHPR18MB1071.namprd18.prod.outlook.com (10.173.123.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Mon, 14 Oct 2019 04:05:58 +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.2347.021; Mon, 14 Oct 2019 04:05:58 +0000 From: Vamsi Krishna Attunuru To: "ferruh.yigit@intel.com" CC: "thomas@monjalon.net" , Jerin Jacob Kollanukkaran , "olivier.matz@6wind.com" , "anatoly.burakov@intel.com" , "arybchenko@solarflare.com" , "Kiran Kumar Kokkilagadda" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v10 0/5] kni: add IOVA=VA support Thread-Index: AQHVU/myKT4BKgAuPEmOyX1G6ACmZ6c8A2OggBSBfgCACVqUUA== Date: Mon, 14 Oct 2019 04:05:57 +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: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f2d3c238-7de9-489f-5570-08d7505bd182 x-ms-traffictypediagnostic: MWHPR18MB1071: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 01901B3451 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(366004)(346002)(136003)(39850400004)(396003)(199004)(189003)(13464003)(55016002)(478600001)(2501003)(9686003)(99286004)(486006)(7736002)(2906002)(52536014)(305945005)(229853002)(3846002)(6436002)(446003)(11346002)(86362001)(6116002)(5640700003)(476003)(8936002)(186003)(54906003)(76176011)(55236004)(102836004)(26005)(4326008)(53546011)(6506007)(66066001)(8676002)(316002)(81156014)(81166006)(33656002)(7696005)(14444005)(256004)(6246003)(4743002)(71190400001)(76116006)(66946007)(66476007)(66556008)(64756008)(66446008)(14454004)(2351001)(25786009)(6916009)(5660300002)(74316002)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR18MB1071; H:MWHPR18MB1645.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: nrU4ssDC3AH+zCvsR/R9fes3mehrCnFMysQK7AR5ozcnwm1o00tZf3oA2O8aKcCZn2vQ8FWCqlWRbvw25ttM1AFpCZbBmbdqA1mqgDytVpAltbWsy7qKKDlRCMmFtHrV0sEECtPAoPxnz+OjTWkJT5d1M6KlVWzHk1g/eYKWTIH3m3cxfdudCXz4w+yAgTAHgzyMIZPAUkM/L9HtOsyq4S2LIgQOH4VH46unHmHVjdARiJZtsIA2tNiuSohrMARgquqYJdhUPOJlfCASoka2JTYfO8FZPEh2wAMY9Gt9jbHI+r5rfLzjLAvAn1WTzMrY9Yf1htQmNUpQ/XG3Q5jy8OW+1s6xbA7z6Ek4ZaorhuEusoCGwlDh1PqG2+vszYKxqzn6n1+zsYCH3W0EqWI3MGmB0omcHK2c7hkmztt5+ks= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f2d3c238-7de9-489f-5570-08d7505bd182 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2019 04:05:58.1451 (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: Aq6iAV3NUC4BqkcrT3gqap5xVsG7TCpVBHjyo0Y0EWYhaDB5b+dj2RlkVL7hc7x85CIUjEe97hiZBYGOKnVntg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR18MB1071 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-14_03:2019-10-10,2019-10-14 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" Hi Ferruh, Mempool related patch has been acked by Olivier. Could you please review th= e kni related patches and make sure that it will be merged in 19.11 release= . Regards, Vamsi > -----Original Message----- > From: Vamsi Krishna Attunuru > Sent: Tuesday, October 8, 2019 10:39 AM > 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 > > Subject: RE: [dpdk-dev] [PATCH v10 0/5] kni: add IOVA=3DVA support >=20 > @All, we are expecting to merge this in 19.11 release and if any one have > comments please respond. >=20 > > -----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 > > > > PING. > > > > -----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 > > > > 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 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. > > > > 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. > > > > 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= check. > > * 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. > > > > 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