mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
netfront.c: avoid gcc variably-modified warning
gcc produces a "variably modified X at file scope" warning for structures that use these size definitions. I think the definitions are actually fine but can be rephrased with the __CONST_RING_SIZE macro more cleanly anyway. Reviewed by: markj, royger Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential revision: https://reviews.freebsd.org/D11417
This commit is contained in:
parent
5a62cbcaad
commit
98018db419
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320517
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user