From patchwork Thu Aug 25 11:30:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 15314 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 9DCF5568A; Thu, 25 Aug 2016 13:31:25 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 9D3C6567A for ; Thu, 25 Aug 2016 13:31:23 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP; 25 Aug 2016 04:31:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.28,575,1464678000"; d="scan'208"; a="1047033798" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 25 Aug 2016 04:31:22 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u7PBVLds016696 for ; Thu, 25 Aug 2016 12:31:21 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u7PBVLWa027464 for ; Thu, 25 Aug 2016 12:31:21 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u7PBVLJm027460 for dev@dpdk.org; Thu, 25 Aug 2016 12:31:21 +0100 X-Authentication-Warning: sivswdev02.ir.intel.com: fyigit set sender to ferruh.yigit@intel.com using -f From: Ferruh Yigit To: dev@dpdk.org Date: Thu, 25 Aug 2016 12:30:36 +0100 Message-Id: <1472124636-27227-3-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1472124636-27227-1-git-send-email-ferruh.yigit@intel.com> References: <1472124636-27227-1-git-send-email-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH 3/3] kni: remove mempool number of mem chunk check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" KNI supports only single mem chunk restriction is no more valid. Signed-off-by: Ferruh Yigit --- lib/librte_kni/rte_kni.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c index 21bf9d4..08bd999 100644 --- a/lib/librte_kni/rte_kni.c +++ b/lib/librte_kni/rte_kni.c @@ -412,12 +412,6 @@ rte_kni_alloc(struct rte_mempool *pktmbuf_pool, dev_info.sync_va = mz->addr; dev_info.sync_phys = mz->phys_addr; - - /* MBUF mempool */ - /* KNI currently requires to have only one memory chunk */ - if (pktmbuf_pool->nb_mem_chunks != 1) - goto kni_fail; - ctx->pktmbuf_pool = pktmbuf_pool; ctx->group_id = conf->group_id; ctx->slot_id = slot->id;