svn commit: r323207 - stable/11/sys/dev/xen/netfront

Ryan Libby rlibby at FreeBSD.org
Wed Sep 6 06:51:54 UTC 2017


Author: rlibby
Date: Wed Sep  6 06:51:52 2017
New Revision: 323207
URL: https://svnweb.freebsd.org/changeset/base/323207

Log:
  MFC r320517:
  
    netfront.c: avoid gcc variably-modified warning

Modified:
  stable/11/sys/dev/xen/netfront/netfront.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/xen/netfront/netfront.c
==============================================================================
--- stable/11/sys/dev/xen/netfront/netfront.c	Wed Sep  6 03:19:52 2017	(r323206)
+++ stable/11/sys/dev/xen/netfront/netfront.c	Wed Sep  6 06:51:52 2017	(r323207)
@@ -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)
 


More information about the svn-src-all mailing list