View | Details | Raw Unified | Return to bug 241774 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/dev/netmap/if_ptnet.c (+3 lines)
Lines 87-92 Link Here
87
#include <dev/netmap/netmap_mem2.h>
87
#include <dev/netmap/netmap_mem2.h>
88
#include <dev/virtio/network/virtio_net.h>
88
#include <dev/virtio/network/virtio_net.h>
89
89
90
#ifdef WITH_PTNETMAP
91
90
#ifndef INET
92
#ifndef INET
91
#error "INET not defined, cannot support offloadings"
93
#error "INET not defined, cannot support offloadings"
92
#endif
94
#endif
Lines 1993-1995 ptnet_poll(if_t ifp, enum poll_cmd cmd, int budget) Link Here
1993
	return count;
1995
	return count;
1994
}
1996
}
1995
#endif /* DEVICE_POLLING */
1997
#endif /* DEVICE_POLLING */
1998
#endif /* WITH_PTNETMAP *
(-)b/sys/dev/netmap/netmap_kern.h (-1 lines)
Lines 76-82 Link Here
76
#define WITH_PIPES
76
#define WITH_PIPES
77
#define WITH_MONITOR
77
#define WITH_MONITOR
78
#define WITH_GENERIC
78
#define WITH_GENERIC
79
#define WITH_PTNETMAP	/* ptnetmap guest support */
80
#define WITH_EXTMEM
79
#define WITH_EXTMEM
81
#define WITH_NMNULL
80
#define WITH_NMNULL
82
#endif
81
#endif
(-)b/sys/net/netmap_virt.h (-2 / +2 lines)
Lines 44-51 Link Here
44
/* PCI identifiers and PCI BARs for ptnetmap-memdev and ptnet. */
44
/* PCI identifiers and PCI BARs for ptnetmap-memdev and ptnet. */
45
#define PTNETMAP_MEMDEV_NAME            "ptnetmap-memdev"
45
#define PTNETMAP_MEMDEV_NAME            "ptnetmap-memdev"
46
#define PTNETMAP_PCI_VENDOR_ID          0x1b36  /* QEMU virtual devices */
46
#define PTNETMAP_PCI_VENDOR_ID          0x1b36  /* QEMU virtual devices */
47
#define PTNETMAP_PCI_DEVICE_ID          0x000c  /* memory device */
47
#define PTNETMAP_PCI_DEVICE_ID          0xcccc  /* memory device */
48
#define PTNETMAP_PCI_NETIF_ID           0x000d  /* ptnet network interface */
48
#define PTNETMAP_PCI_NETIF_ID           0xcccd  /* ptnet network interface */
49
#define PTNETMAP_IO_PCI_BAR             0
49
#define PTNETMAP_IO_PCI_BAR             0
50
#define PTNETMAP_MEM_PCI_BAR            1
50
#define PTNETMAP_MEM_PCI_BAR            1
51
#define PTNETMAP_MSIX_PCI_BAR           2
51
#define PTNETMAP_MSIX_PCI_BAR           2

Return to bug 241774