From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 9A6FF5584 for ; Tue, 15 Mar 2016 07:29:45 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id p65so11474538wmp.0 for ; Mon, 14 Mar 2016 23:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A0NCd1JRY5ot5RilpIqVND3zBTt+/TpXOq+rzfvZ1y0=; b=cTGfWb8kEzUZiQSaxUbpIyVSOUobKiPWMkPEpKfoO0EMSzjAJZfxCmtW7tHjs/lYRo 1kiWJpLTm+ZwO5T38h+DtPdcfzI1jUmRvVwZ/tkp07VFhVHBGEygAjp7UESesMwLObUT Jskx7l7HKRBTQNuGNKb14D1Gvx5TDDiULBi2S5jKLphPepXLBxNqStZsth2aN+OUTDMG oM9uNUMcQIvJkSRB0PQcc761OH509t4CmK1+iDWckFksJgth899frXliWD+u+GBbtaIJ rojDaSVIJq8Il3gzTApc7Tzcz/IozslqVNMRV9DDBJI58VwO1mHmY9/WzbHbUMqw1jsg Ze9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A0NCd1JRY5ot5RilpIqVND3zBTt+/TpXOq+rzfvZ1y0=; b=ZbGrMIZi4fbrzpWP5uMP34CAMVRlZPsllrQiscl31LTZTNXVyjgSNN10mwPu8LVtjQ LIubYnXkBPeGWk9SBQkgmp3v/uJdfc5eKbZJlK9s+u76L7+D0jIDDB0mg3BXWrJmenBz 5a/VXQXIlpZNYwxbP6QBnAbstI+yvryip24/dqAcVRi8t72YL+Ww3MJyvnZjEanJ36g4 ffJgc3xfZQTG3gTpVsvWK4dw9PoOsfwXkTPsBbpLgeMnYQlmXYd5Z0dji34E2k4O74S4 9Wb8yZwH7GW0aq2Njr2PgV+W704sEZI5joE8X+JcKDNFzB4AF/xzhwnRp7PoWw4SumSW bU8A== X-Gm-Message-State: AD7BkJInnImgTKICgRc43l+CQVJuPubQHqfH4/RE35Lwit/yowqfJdlXMjc1EmTb/96ssxun X-Received: by 10.28.127.144 with SMTP id a138mr20479156wmd.25.1458023385452; Mon, 14 Mar 2016 23:29:45 -0700 (PDT) Received: from gloops.dev.6wind.com ([37.163.72.253]) by smtp.gmail.com with ESMTPSA id up6sm25417399wjc.6.2016.03.14.23.29.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2016 23:29:44 -0700 (PDT) From: David Marchand To: dev@dpdk.org Cc: mauricio.vasquezbernal@studenti.polito.it, yuanhan.liu@linux.intel.com, huawei.xie@intel.com Date: Tue, 15 Mar 2016 07:29:10 +0100 Message-Id: <1458023353-22268-2-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458023353-22268-1-git-send-email-david.marchand@6wind.com> References: <1458023353-22268-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 1/4] pci: explicitly call ioport handlers for uio_pci_generic 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: , X-List-Received-Date: Tue, 15 Mar 2016 06:29:45 -0000 Prepare for fixes on x86 by separating igb_uio and uio_pci_generic cases. Signed-off-by: David Marchand --- lib/librte_eal/linuxapp/eal/eal_pci.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c index 9f75252..e2af371 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c @@ -617,6 +617,8 @@ rte_eal_pci_ioport_map(struct rte_pci_device *dev, int bar, break; #endif case RTE_KDRV_IGB_UIO: + ret = pci_uio_ioport_map(dev, bar, p); + break; case RTE_KDRV_UIO_GENERIC: ret = pci_uio_ioport_map(dev, bar, p); break; @@ -646,6 +648,8 @@ rte_eal_pci_ioport_read(struct rte_pci_ioport *p, break; #endif case RTE_KDRV_IGB_UIO: + pci_uio_ioport_read(p, data, len, offset); + break; case RTE_KDRV_UIO_GENERIC: pci_uio_ioport_read(p, data, len, offset); break; @@ -669,6 +673,8 @@ rte_eal_pci_ioport_write(struct rte_pci_ioport *p, break; #endif case RTE_KDRV_IGB_UIO: + pci_uio_ioport_write(p, data, len, offset); + break; case RTE_KDRV_UIO_GENERIC: pci_uio_ioport_write(p, data, len, offset); break; @@ -695,6 +701,8 @@ rte_eal_pci_ioport_unmap(struct rte_pci_ioport *p) break; #endif case RTE_KDRV_IGB_UIO: + ret = pci_uio_ioport_unmap(p); + break; case RTE_KDRV_UIO_GENERIC: ret = pci_uio_ioport_unmap(p); break; -- 1.9.1