From: Fan Zhang <roy.fan.zhang@intel.com>
To: dev@dpdk.org
Cc: thomas@monjalon.net, alejandro.lucero@netronome.com
Subject: [dpdk-dev] [PATCH] bus/pci: fix missing case for virtio-crypto
Date: Thu, 1 Nov 2018 12:10:09 +0000 [thread overview]
Message-ID: <20181101121009.86287-1-roy.fan.zhang@intel.com> (raw)
The recent change to rte_pci_read_config() caused virtio-crypto
device initialization always failed as it has a
RTE_KDRV_UIO_GENERIC driver type. This patch fixes the problem.
Fixes: 630deed612ca ("bus/pci: compare kernel driver instead of interrupt handler")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
---
drivers/bus/pci/linux/pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c
index 1783ec7f5..0220adc66 100644
--- a/drivers/bus/pci/linux/pci.c
+++ b/drivers/bus/pci/linux/pci.c
@@ -704,6 +704,7 @@ int rte_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:
--
2.13.6
next reply other threads:[~2018-11-01 12:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 12:10 Fan Zhang [this message]
2018-11-01 13:35 ` Thomas Monjalon
2018-11-02 10:01 ` Zhang, Roy Fan
2018-11-02 10:39 ` Thomas Monjalon
2018-11-05 22:18 ` Thomas Monjalon
2018-11-06 1:12 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181101121009.86287-1-roy.fan.zhang@intel.com \
--to=roy.fan.zhang@intel.com \
--cc=alejandro.lucero@netronome.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).