Go to the documentation of this file.
32 #include <linux/stddef.h>
33 #include <linux/module.h>
34 #include <linux/types.h>
35 #include <asm/byteorder.h>
38 #include <linux/errno.h>
40 #include <linux/pci.h>
41 #include <linux/kernel.h>
42 #include <linux/netdevice.h>
47 #include <linux/slab.h>
50 #include <linux/string.h>
53 #include <linux/bitops.h>
56 #include <linux/capability.h>
59 #include <linux/tcp.h>
60 #include <linux/udp.h>
62 #include <linux/list.h>
63 #include <linux/reboot.h>
66 #include <linux/ethtool.h>
67 #include <linux/if_vlan.h>
79 #define DEFAULT_TXD 256
86 #define DEFAULT_RXD 512
91 #define IXGB_RXBUFFER_2048 2048
92 #define IXGB_RXBUFFER_4096 4096
93 #define IXGB_RXBUFFER_8192 8192
94 #define IXGB_RXBUFFER_16384 16384
97 #define IXGB_RX_BUFFER_WRITE 8
127 #define IXGB_DESC_UNUSED(R) \
128 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
129 (R)->next_to_clean - (R)->next_to_use - 1)
131 #define IXGB_GET_DESC(R, i, type) (&(((struct type *)((R).desc))[i]))
132 #define IXGB_RX_DESC(R, i) IXGB_GET_DESC(R, i, ixgb_rx_desc)
133 #define IXGB_TX_DESC(R, i) IXGB_GET_DESC(R, i, ixgb_tx_desc)
134 #define IXGB_CONTEXT_DESC(R, i) IXGB_GET_DESC(R, i, ixgb_context_desc)