Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
igbvf.h File Reference
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/io.h>
#include <linux/netdevice.h>
#include <linux/if_vlan.h>
#include "vf.h"

Go to the source code of this file.

Data Structures

struct  igbvf_queue_stats
 
struct  igbvf_buffer
 
union  igbvf_desc
 
struct  igbvf_ring
 
struct  igbvf_adapter
 
struct  igbvf_info
 

Macros

#define IGBVF_START_ITR   488 /* ~8000 ints/sec */
 
#define IGBVF_4K_ITR   980
 
#define IGBVF_20K_ITR   196
 
#define IGBVF_70K_ITR   56
 
#define IGBVF_INT_MODE_LEGACY   0
 
#define IGBVF_INT_MODE_MSI   1
 
#define IGBVF_INT_MODE_MSIX   2
 
#define IGBVF_DEFAULT_TXD   256
 
#define IGBVF_MAX_TXD   4096
 
#define IGBVF_MIN_TXD   80
 
#define IGBVF_DEFAULT_RXD   256
 
#define IGBVF_MAX_RXD   4096
 
#define IGBVF_MIN_RXD   80
 
#define IGBVF_MIN_ITR_USECS   10 /* 100000 irq/sec */
 
#define IGBVF_MAX_ITR_USECS   10000 /* 100 irq/sec */
 
#define IGBVF_RX_PTHRESH   16
 
#define IGBVF_RX_HTHRESH   8
 
#define IGBVF_RX_WTHRESH   1
 
#define MAXIMUM_ETHERNET_VLAN_SIZE   1522
 
#define IGBVF_FC_PAUSE_TIME   0x0680 /* 858 usec */
 
#define IGBVF_TX_QUEUE_WAKE   32
 
#define IGBVF_RX_BUFFER_WRITE   16 /* Must be power of 2 */
 
#define AUTO_ALL_MODES   0
 
#define IGBVF_EEPROM_APME   0x0400
 
#define IGBVF_MNG_VLAN_NONE   (-1)
 
#define PS_PAGE_BUFFERS   (MAX_PS_BUFFERS - 1)
 
#define IGBVF_FLAG_RX_CSUM_DISABLED   (1 << 0)
 
#define IGBVF_RX_DESC_ADV(R, i)   (&((((R).desc))[i].rx_desc))
 
#define IGBVF_TX_DESC_ADV(R, i)   (&((((R).desc))[i].tx_desc))
 
#define IGBVF_TX_CTXTDESC_ADV(R, i)   (&((((R).desc))[i].tx_context_desc))
 

Enumerations

enum  latency_range {
  lowest_latency = 0, low_latency = 1, bulk_latency = 2, latency_invalid = 255,
  lowest_latency = 0, low_latency = 1, bulk_latency = 2, latency_invalid = 255,
  lowest_latency = 0, low_latency = 1, bulk_latency = 2, latency_invalid = 255,
  lowest_latency = 0, low_latency = 1, bulk_latency = 2, latency_invalid = 255,
  lowest_latency = 0, low_latency = 1, bulk_latency = 2, latency_invalid = 255,
  lowest_latency = 0, low_latency = 1, bulk_latency = 2, latency_invalid = 255
}
 
enum  igbvf_boards { board_vf, board_i350_vf }
 
enum  igbvf_state_t { __IGBVF_TESTING, __IGBVF_RESETTING, __IGBVF_DOWN }
 

Functions

void igbvf_check_options (struct igbvf_adapter *)
 
void igbvf_set_ethtool_ops (struct net_device *)
 
int igbvf_up (struct igbvf_adapter *)
 
void igbvf_down (struct igbvf_adapter *)
 
void igbvf_reinit_locked (struct igbvf_adapter *)
 
int igbvf_setup_rx_resources (struct igbvf_adapter *, struct igbvf_ring *)
 
int igbvf_setup_tx_resources (struct igbvf_adapter *, struct igbvf_ring *)
 
void igbvf_free_rx_resources (struct igbvf_ring *)
 
void igbvf_free_tx_resources (struct igbvf_ring *)
 
void igbvf_update_stats (struct igbvf_adapter *)
 

Variables

char igbvf_driver_name []
 
const char igbvf_driver_version []
 
unsigned int copybreak
 

Macro Definition Documentation

#define AUTO_ALL_MODES   0

Definition at line 101 of file igbvf.h.

#define IGBVF_20K_ITR   196

Definition at line 48 of file igbvf.h.

#define IGBVF_4K_ITR   980

Definition at line 47 of file igbvf.h.

#define IGBVF_70K_ITR   56

Definition at line 49 of file igbvf.h.

#define IGBVF_DEFAULT_RXD   256

Definition at line 69 of file igbvf.h.

#define IGBVF_DEFAULT_TXD   256

Definition at line 65 of file igbvf.h.

#define IGBVF_EEPROM_APME   0x0400

Definition at line 102 of file igbvf.h.

#define IGBVF_FC_PAUSE_TIME   0x0680 /* 858 usec */

Definition at line 94 of file igbvf.h.

#define IGBVF_FLAG_RX_CSUM_DISABLED   (1 << 0)

Definition at line 297 of file igbvf.h.

#define IGBVF_INT_MODE_LEGACY   0

Definition at line 60 of file igbvf.h.

#define IGBVF_INT_MODE_MSI   1

Definition at line 61 of file igbvf.h.

#define IGBVF_INT_MODE_MSIX   2

Definition at line 62 of file igbvf.h.

#define IGBVF_MAX_ITR_USECS   10000 /* 100 irq/sec */

Definition at line 74 of file igbvf.h.

#define IGBVF_MAX_RXD   4096

Definition at line 70 of file igbvf.h.

#define IGBVF_MAX_TXD   4096

Definition at line 66 of file igbvf.h.

#define IGBVF_MIN_ITR_USECS   10 /* 100000 irq/sec */

Definition at line 73 of file igbvf.h.

#define IGBVF_MIN_RXD   80

Definition at line 71 of file igbvf.h.

#define IGBVF_MIN_TXD   80

Definition at line 67 of file igbvf.h.

#define IGBVF_MNG_VLAN_NONE   (-1)

Definition at line 104 of file igbvf.h.

#define IGBVF_RX_BUFFER_WRITE   16 /* Must be power of 2 */

Definition at line 99 of file igbvf.h.

#define IGBVF_RX_DESC_ADV (   R,
  i 
)    (&((((R).desc))[i].rx_desc))

Definition at line 299 of file igbvf.h.

#define IGBVF_RX_HTHRESH   8

Definition at line 88 of file igbvf.h.

#define IGBVF_RX_PTHRESH   16

Definition at line 87 of file igbvf.h.

#define IGBVF_RX_WTHRESH   1

Definition at line 89 of file igbvf.h.

#define IGBVF_START_ITR   488 /* ~8000 ints/sec */

Definition at line 46 of file igbvf.h.

#define IGBVF_TX_CTXTDESC_ADV (   R,
  i 
)    (&((((R).desc))[i].tx_context_desc))

Definition at line 303 of file igbvf.h.

#define IGBVF_TX_DESC_ADV (   R,
  i 
)    (&((((R).desc))[i].tx_desc))

Definition at line 301 of file igbvf.h.

#define IGBVF_TX_QUEUE_WAKE   32

Definition at line 97 of file igbvf.h.

#define MAXIMUM_ETHERNET_VLAN_SIZE   1522

Definition at line 92 of file igbvf.h.

#define PS_PAGE_BUFFERS   (MAX_PS_BUFFERS - 1)

Definition at line 107 of file igbvf.h.

Enumeration Type Documentation

Enumerator:
board_vf 
board_i350_vf 

Definition at line 109 of file igbvf.h.

Enumerator:
__IGBVF_TESTING 
__IGBVF_RESETTING 
__IGBVF_DOWN 

Definition at line 306 of file igbvf.h.

Enumerator:
lowest_latency 
low_latency 
bulk_latency 
latency_invalid 
lowest_latency 
low_latency 
bulk_latency 
latency_invalid 
lowest_latency 
low_latency 
bulk_latency 
latency_invalid 
lowest_latency 
low_latency 
bulk_latency 
latency_invalid 
lowest_latency 
low_latency 
bulk_latency 
latency_invalid 
lowest_latency 
low_latency 
bulk_latency 
latency_invalid 

Definition at line 51 of file igbvf.h.

Function Documentation

void igbvf_check_options ( struct igbvf_adapter )
void igbvf_down ( struct igbvf_adapter )

Definition at line 1470 of file netdev.c.

void igbvf_free_rx_resources ( struct igbvf_ring rx_ring)

igbvf_free_rx_resources - Free Rx Resources : ring to clean the resources from

Free all receive software resources

Definition at line 613 of file netdev.c.

void igbvf_free_tx_resources ( struct igbvf_ring tx_ring)

igbvf_free_tx_resources - Free Tx Resources per Queue : ring to free resources from

Free all transmit software resources

Definition at line 529 of file netdev.c.

void igbvf_reinit_locked ( struct igbvf_adapter )

Definition at line 1515 of file netdev.c.

void igbvf_set_ethtool_ops ( struct net_device )

Definition at line 477 of file ethtool.c.

int igbvf_setup_rx_resources ( struct igbvf_adapter adapter,
struct igbvf_ring rx_ring 
)

igbvf_setup_rx_resources - allocate Rx resources (Descriptors) : board private structure

Returns 0 on success, negative on failure

Definition at line 452 of file netdev.c.

int igbvf_setup_tx_resources ( struct igbvf_adapter adapter,
struct igbvf_ring tx_ring 
)

igbvf_setup_tx_resources - allocate Tx resources (Descriptors) : board private structure

Return 0 on success, negative on failure

Definition at line 413 of file netdev.c.

int igbvf_up ( struct igbvf_adapter )

Definition at line 1445 of file netdev.c.

void igbvf_update_stats ( struct igbvf_adapter adapter)

igbvf_update_stats - Update the board statistics counters : board private structure

Definition at line 1740 of file netdev.c.

Variable Documentation

unsigned int copybreak

Definition at line 47 of file param.c.

char igbvf_driver_name[]

Definition at line 51 of file netdev.c.

const char igbvf_driver_version[]

Definition at line 52 of file netdev.c.