aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xen
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2017-06-30 22:14:22 +0000
committerRyan Libby <rlibby@FreeBSD.org>2017-06-30 22:14:22 +0000
commit98018db4193ca99b4261cfb3e84ab2b16586695e (patch)
treeb7b8e3599cda8499d8e915ad2d1bb64a3e5fa773 /sys/dev/xen
parent5a62cbcaad2d7851f1dd03d5a078a64f743e0d8f (diff)
Notes
Diffstat (limited to 'sys/dev/xen')
-rw-r--r--sys/dev/xen/netfront/netfront.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
index 694338b2e528..226510cc6bde 100644
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -74,8 +74,8 @@ __FBSDID("$FreeBSD$");
/* Features supported by all backends. TSO and LRO can be negotiated */
#define XN_CSUM_FEATURES (CSUM_TCP | CSUM_UDP)
-#define NET_TX_RING_SIZE __RING_SIZE((netif_tx_sring_t *)0, PAGE_SIZE)
-#define NET_RX_RING_SIZE __RING_SIZE((netif_rx_sring_t *)0, PAGE_SIZE)
+#define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGE_SIZE)
+#define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGE_SIZE)
#define NET_RX_SLOTS_MIN (XEN_NETIF_NR_SLOTS_MIN + 1)