43 #define IGBVF_START_ITR 648 46 #define IGBVF_DEFAULT_TXD 256 47 #define IGBVF_MAX_TXD 4096 48 #define IGBVF_MIN_TXD 80 50 #define IGBVF_DEFAULT_RXD 256 51 #define IGBVF_MAX_RXD 4096 52 #define IGBVF_MIN_RXD 80 54 #define IGBVF_MIN_ITR_USECS 10 55 #define IGBVF_MAX_ITR_USECS 10000 68 #define IGBVF_RX_PTHRESH 16 69 #define IGBVF_RX_HTHRESH 8 70 #define IGBVF_RX_WTHRESH 1 72 #define IGBVF_TX_PTHRESH 8 73 #define IGBVF_TX_HTHRESH 1 74 #define IGBVF_TX_WTHRESH 1 77 #define MAXIMUM_ETHERNET_VLAN_SIZE 1522 79 #define IGBVF_FC_PAUSE_TIME 0x0680 82 #define IGBVF_TX_QUEUE_WAKE 32 84 #define IGBVF_RX_BUFFER_WRITE 16 86 #define AUTO_ALL_MODES 0 87 #define IGBVF_EEPROM_APME 0x0400 89 #define IGBVF_MNG_VLAN_NONE (-1) 112 unsigned long time_stamp;
142 struct napi_struct napi;
144 char name[IFNAMSIZ + 5];
150 struct sk_buff *rx_skb_top;
159 struct timer_list watchdog_timer;
160 struct timer_list blink_timer;
162 struct work_struct reset_task;
163 struct work_struct watchdog_task;
167 struct vlan_group *vlgrp;
170 u32 polling_interval;
192 unsigned long tx_queue_len;
193 unsigned int restart_queue;
197 u8 tx_timeout_factor;
199 unsigned int total_tx_bytes;
200 unsigned int total_tx_packets;
201 unsigned int total_rx_bytes;
202 unsigned int total_rx_packets;
205 u32 tx_timeout_count;
220 u32 alloc_rx_buff_failed;
223 unsigned int rx_ps_hdr_size;
229 struct pci_dev *
pdev;
248 struct msix_entry *msix_entries;
250 u32 eims_enable_mask;
261 unsigned long led_status;
264 unsigned long last_reset;
280 #define NUM_TX_DESC 8 281 #define NUM_RX_DESC 8 315 #define IGBVF_FLAG_RX_CSUM_DISABLED (1 << 0) 317 #define IGBVF_DESC_UNUSED(R) \ 318 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 319 (R)->next_to_clean - (R)->next_to_use - 1) 321 #define IGBVF_RX_DESC_ADV(R, i) \ 322 (&(((union e1000_adv_rx_desc *)((R).desc))[i])) 323 #define IGBVF_TX_DESC_ADV(R, i) \ 324 (&(((union e1000_adv_tx_desc *)((R).desc))[i])) 325 #define IGBVF_TX_CTXTDESC_ADV(R, i) \ 326 (&(((struct e1000_adv_tx_context_desc *)((R).desc))[i])) 346 #ifdef ETHTOOL_OPS_COMPAT 347 extern int ethtool_ioctl(
struct ifreq *ifr);
373 #define er32(reg) E1000_READ_REG(hw, E1000_##reg) 374 #define ew32(reg,val) E1000_WRITE_REG(hw, E1000_##reg, (val)) 375 #define e1e_flush() er32(STATUS)
union e1000_adv_tx_desc * tx_base
static unsigned int unsigned int reg
#define ____cacheline_aligned_in_smp
int igbvf_setup_tx_resources(struct igbvf_adapter *adapter)
igbvf_setup_tx_resources - allocate Tx resources (Descriptors)
uint8_t size
Entry size (in 32-bit words)
uint32_t readl(volatile uint32_t *io_addr)
Read 32-bit dword from memory-mapped device.
void igbvf_free_rx_resources(struct igbvf_adapter *adapter)
igbvf_free_rx_resources - Free Rx Resources @adapter: board private structure
uint64_t desc
Microcode descriptor list physical address.
void(* init_ops)(struct e1000_hw *)
uint32_t tx_abs_int_delay
void igbvf_reset(struct igbvf_adapter *adapter)
void igbvf_reset_interrupt_capability(struct igbvf_adapter *adapter)
int igbvf_setup_rx_resources(struct igbvf_adapter *adapter)
igbvf_setup_rx_resources - allocate Rx resources (Descriptors)
void igbvf_free_tx_resources(struct igbvf_adapter *adapter)
igbvf_free_tx_resources - Free Tx Resources per Queue @adapter: board private structure
const char igbvf_driver_version[]
struct net_device_stats net_stats
void writel(uint32_t data, volatile uint32_t *io_addr)
Write 32-bit dword to memory-mapped device.
static struct net_device * netdev
uint16_t count
Number of entries.
struct net_device * netdev
void igbvf_reinit_locked(struct igbvf_adapter *adapter)
Network device statistics.
void igbvf_check_options(struct igbvf_adapter *adapter)
void igbvf_set_ethtool_ops(struct net_device *netdev)
void igbvf_update_stats(struct igbvf_adapter *adapter)
int igbvf_up(struct igbvf_adapter *adapter)
struct io_buffer * tx_iobuf[NUM_TX_DESC]
void igbvf_down(struct igbvf_adapter *adapter)
s32(* get_variants)(struct igbvf_adapter *)
static void __ew32(struct e1000_hw *hw, unsigned long reg, u32 val)
static __always_inline physaddr_t dma(struct dma_mapping *map, void *addr)
Get DMA address from virtual address.
union e1000_adv_rx_desc * rx_base
void igbvf_set_interrupt_capability(struct igbvf_adapter *adapter)
struct io_buffer * rx_iobuf[NUM_RX_DESC]
static u32 __er32(struct e1000_hw *hw, unsigned long reg)