Print this page
3373 gcc >= 4.5 concerns about offsetof()
Portions contributed by: Igor Pashev <pashev.igor@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/xen/io/xnf.h
          +++ new/usr/src/uts/common/xen/io/xnf.h
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  #ifndef _SYS_XNF_H
  28   28  #define _SYS_XNF_H
  29   29  
  30   30  #ifdef __cplusplus
  31   31  extern "C" {
  32   32  #endif
  33   33  
  34      -#define NET_TX_RING_SIZE  __RING_SIZE((netif_tx_sring_t *)0, PAGESIZE)
  35      -#define NET_RX_RING_SIZE  __RING_SIZE((netif_rx_sring_t *)0, PAGESIZE)
       34 +#define NET_TX_RING_SIZE  __CONST_RING_SIZE(netif_tx, PAGESIZE)
       35 +#define NET_RX_RING_SIZE  __CONST_RING_SIZE(netif_rx, PAGESIZE)
  36   36  
  37   37  #define XNF_MAXPKT      1500            /* MTU size */
  38   38  #define XNF_FRAMESIZE   1514            /* frame size including MAC header */
  39   39  
  40   40  /* DEBUG flags */
  41   41  #define XNF_DEBUG_DDI           0x01
  42   42  #define XNF_DEBUG_TRACE         0x02
  43   43  
  44   44  /*
  45   45   * Information about each receive buffer and any transmit look-aside
↓ open down ↓ 138 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX