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 703C5A0471 for ; Wed, 17 Jul 2019 11:04:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D89AC1C01; Wed, 17 Jul 2019 11:04:53 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id C0C8E1B53 for ; Wed, 17 Jul 2019 11:04: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 x6H93g9C002046; Wed, 17 Jul 2019 02:04:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=3uF6D61GK3Ir/6vFD4TIGoTt/D1nemPH5xYJprKEoOE=; b=X0IqKWd1MqfmOHjlN3yYGKQuVqzxYh++YlUfN1BdURvuRpY+8Md7kTmpTf8arBq2ve6T oRZJD2+GzUXC+vajjTTjOky1DuCKShCl7ObQaPpKGZZ6hCE+aB0cmrPEhft9QHb9p6+M yLxS7e4/upE1Lm7KT6nl2q3pwcNu5eDaf+dkhHk/HnDm0H7qpzz4n+L9xhpBCJ2rnVAs LIb50bMLI081ruAK5hIotABBwtdqOB62VIIePm/IrITkEIATTn+dzhOfBOCoAVV7Vrdb Imu75B9/A3LeyP4VscgmvZFZTut9dkupJSxrs7M9IAbyNJdKy781o0jDCEh9gniKng57 mw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2ts0a26x08-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 02:04:51 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 17 Jul 2019 02:04:49 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 17 Jul 2019 02:04:49 -0700 Received: from hyd1vattunuru-dt.caveonetworks.com (unknown [10.29.52.72]) by maili.marvell.com (Postfix) with ESMTP id A1C2B3F703F; Wed, 17 Jul 2019 02:04:46 -0700 (PDT) From: To: CC: , , , , , , Vamsi Attunuru Date: Wed, 17 Jul 2019 14:34:04 +0530 Message-ID: <20190717090408.13717-1-vattunuru@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20190625035700.2953-1-vattunuru@marvell.com> References: <20190625035700.2953-1-vattunuru@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-17_03:2019-07-16,2019-07-17 signatures=0 Subject: [dpdk-dev] [PATCH v7 0/4] 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" From: Vamsi Attunuru ---- 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() == 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=PA mode when IOVA=VA 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=VA mode using iommu_iova_to_phys API. Kiran Kumar K (1): kni: add IOVA=VA support in KNI module Vamsi Attunuru (3): mempool: modify mempool populate() to skip objects from page boundaries kni: add IOVA = VA support in KNI lib kni: modify IOVA mode checks to support VA doc/guides/prog_guide/kernel_nic_interface.rst | 8 +++ 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 | 1 + lib/librte_kni/meson.build | 1 + lib/librte_kni/rte_kni.c | 59 +++++++++++++++++-- lib/librte_mempool/rte_mempool.c | 2 +- lib/librte_mempool/rte_mempool_ops_default.c | 33 ++++++++++- 12 files changed, 223 insertions(+), 31 deletions(-) -- 2.8.4