aboutsummaryrefslogtreecommitdiff
path: root/sys/net/netmap_virt.h
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2020-01-13 21:47:23 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2020-01-13 21:47:23 +0000
commit2ec213aba4bfecb47d7439a6d4b46b88a382eaff (patch)
tree3b71250ddf51f8565ce68f2f06674f32364103ec /sys/net/netmap_virt.h
parentf55f37d9c5b8e02e1568cdecf8e1bbb58a6d19ec (diff)
downloadsrc-2ec213aba4bfecb47d7439a6d4b46b88a382eaff.tar.gz
src-2ec213aba4bfecb47d7439a6d4b46b88a382eaff.zip
netmap: disable passthrough with no hypervisor support
The netmap passthrough subsystem requires proper support in the hypervisor. In particular, two PCI device ids (from the Red Hat PCI vendor id 0x1b36) need to be assigned to the two netmap virtual devices. We then disable these devices until the ids have not been assigned, in order to avoid conflicts with other virtual devices emulated by upstream QEMU. PR: 241774 MFC after: 3 days
Notes
Notes: svn path=/head/; revision=356704
Diffstat (limited to 'sys/net/netmap_virt.h')
-rw-r--r--sys/net/netmap_virt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/netmap_virt.h b/sys/net/netmap_virt.h
index 07e551aff009..12c2565a734a 100644
--- a/sys/net/netmap_virt.h
+++ b/sys/net/netmap_virt.h
@@ -44,8 +44,8 @@
/* PCI identifiers and PCI BARs for ptnetmap-memdev and ptnet. */
#define PTNETMAP_MEMDEV_NAME "ptnetmap-memdev"
#define PTNETMAP_PCI_VENDOR_ID 0x1b36 /* QEMU virtual devices */
-#define PTNETMAP_PCI_DEVICE_ID 0x000c /* memory device */
-#define PTNETMAP_PCI_NETIF_ID 0x000d /* ptnet network interface */
+#define PTNETMAP_PCI_DEVICE_ID 0xcccc /* memory device */
+#define PTNETMAP_PCI_NETIF_ID 0xcccd /* ptnet network interface */
#define PTNETMAP_IO_PCI_BAR 0
#define PTNETMAP_MEM_PCI_BAR 1
#define PTNETMAP_MSIX_PCI_BAR 2