From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 283434C91 for ; Thu, 8 Nov 2018 19:01:46 +0100 (CET) Received: by mail-wm1-f65.google.com with SMTP id s10-v6so2184217wmc.5 for ; Thu, 08 Nov 2018 10:01:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NIPAGc3EQgnxcF7N3DIRr2Q3D3k1+3lO34xjlwkOKR8=; b=A37wapJhX2rZJ2QUFIhOKZlFH68tywYRPxzQB6RCnEsM2edQvwuYKavVHh4vWOdOVP 2PXSIRgo+hMTC4QeQrff2sDrv0Mo80pk1NBhY9u8VXKimWcYpq69EAGWJ1ABxFy7a9km YtSfTTWhQfXNDsNEyxMPNxG0uwPJ1ddunnXR2LnKLVwmqJz4bmg0ig9ekxV5XGcgf+iB q+bil85I4yl6XTHUqOHSpGJ3y+lkCgARmUrnDE15dHHeNeqKc41acn7GUIh134FbjX+q H4cxvGhEWrwh/Jhzrd0A2iF3iftXh3CYWff4LkDahDliufkgOxk0/42vu6hoqOBzIebh Ic1w== X-Gm-Message-State: AGRZ1gLH2X4yO2PcNiU16cC7qZCv0BXcZkYZMG08hjnsLbUnXzG8Ddyw qPBs8f/DOu+TMe7nEPgHuxs= X-Google-Smtp-Source: AJdET5dRl6MGCiCODs1uETWzejk9ODV56m6Cga1TyeVTq5N3/2qPEuVXQFzBHl9/aylBUHhQVbVksQ== X-Received: by 2002:a1c:7cc:: with SMTP id 195-v6mr1987698wmh.139.1541700105787; Thu, 08 Nov 2018 10:01:45 -0800 (PST) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id q11-v6sm3822982wrj.7.2018.11.08.10.01.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 10:01:44 -0800 (PST) From: Luca Boccassi To: Fan Zhang Cc: Thomas Monjalon , dpdk stable Date: Thu, 8 Nov 2018 18:01:08 +0000 Message-Id: <20181108180111.25873-12-bluca@debian.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108180111.25873-1-bluca@debian.org> References: <20181029125329.17729-20-bluca@debian.org> <20181108180111.25873-1-bluca@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'bus/pci: fix config r/w access' has been queued to LTS release 16.11.9 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2018 18:01:46 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/10/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Luca Boccassi --- >>From 939e666bc0796940ae91535002e1a1c9196eae02 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Thu, 1 Nov 2018 12:10:09 +0000 Subject: [PATCH] bus/pci: fix config r/w access The recent change to rte_pci_read/write_config() missed uio_pci_generic case. Fixes: 630deed612ca ("bus/pci: compare kernel driver instead of interrupt handler") Cc: stable@dpdk.org Signed-off-by: Fan Zhang Signed-off-by: Thomas Monjalon (cherry picked from commit a38eafedda1de14c9fd7219e769e89e4aec92a45) --- lib/librte_eal/linuxapp/eal/eal_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c index 85c7b3139..84975dedf 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c @@ -532,6 +532,7 @@ int rte_eal_pci_read_config(const struct rte_pci_device *device, switch (device->kdrv) { case RTE_KDRV_IGB_UIO: + case RTE_KDRV_UIO_GENERIC: return pci_uio_read_config(intr_handle, buf, len, offset); #ifdef VFIO_PRESENT case RTE_KDRV_VFIO: @@ -555,6 +556,7 @@ int rte_eal_pci_write_config(const struct rte_pci_device *device, switch (device->kdrv) { case RTE_KDRV_IGB_UIO: + case RTE_KDRV_UIO_GENERIC: return pci_uio_write_config(intr_handle, buf, len, offset); #ifdef VFIO_PRESENT case RTE_KDRV_VFIO: -- 2.19.1