Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ixgb_main.c File Reference
#include <linux/prefetch.h>
#include "ixgb.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRIVERNAPI   "-NAPI"
 
#define DRV_VERSION   "1.0.135-k2" DRIVERNAPI
 
#define IXGB_CB_LENGTH   256
 
#define DEFAULT_MSG_ENABLE   (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)
 
#define IXGB_TX_FLAGS_CSUM   0x00000001
 
#define IXGB_TX_FLAGS_VLAN   0x00000002
 
#define IXGB_TX_FLAGS_TSO   0x00000004
 
#define IXGB_MAX_TXD_PWR   14
 
#define IXGB_MAX_DATA_PER_TXD   (1<<IXGB_MAX_TXD_PWR)
 
#define TXD_USE_COUNT(S)
 
#define DESC_NEEDED
 
#define IXGB_MAX_INTR   10
 

Functions

 module_param (copybreak, uint, 0644)
 
 MODULE_PARM_DESC (copybreak,"Maximum size of packet that is copied to a new buffer on receive")
 
 MODULE_DEVICE_TABLE (pci, ixgb_pci_tbl)
 
 MODULE_AUTHOR ("Intel Corporation, <[email protected]>")
 
 MODULE_DESCRIPTION ("Intel(R) PRO/10GbE Network Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 
 module_param (debug, int, 0)
 
 MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)")
 
 module_init (ixgb_init_module)
 
 module_exit (ixgb_exit_module)
 
int ixgb_up (struct ixgb_adapter *adapter)
 
void ixgb_down (struct ixgb_adapter *adapter, bool kill_watchdog)
 
void ixgb_reset (struct ixgb_adapter *adapter)
 
int ixgb_setup_tx_resources (struct ixgb_adapter *adapter)
 
int ixgb_setup_rx_resources (struct ixgb_adapter *adapter)
 
void ixgb_free_tx_resources (struct ixgb_adapter *adapter)
 
void ixgb_free_rx_resources (struct ixgb_adapter *adapter)
 
void ixgb_update_stats (struct ixgb_adapter *adapter)
 

Variables

char ixgb_driver_name [] = "ixgb"
 
const char ixgb_driver_version [] = DRV_VERSION
 

Macro Definition Documentation

#define DEFAULT_MSG_ENABLE   (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK)

Definition at line 137 of file ixgb_main.c.

#define DESC_NEEDED
Value:
MAX_SKB_FRAGS * TXD_USE_COUNT(PAGE_SIZE) + 1 /* for context */ \
+ 1 /* one more needed for sentinel TSO workaround */

Definition at line 1525 of file ixgb_main.c.

#define DRIVERNAPI   "-NAPI"

Definition at line 37 of file ixgb_main.c.

#define DRV_VERSION   "1.0.135-k2" DRIVERNAPI

Definition at line 38 of file ixgb_main.c.

#define IXGB_CB_LENGTH   256

Definition at line 42 of file ixgb_main.c.

#define IXGB_MAX_DATA_PER_TXD   (1<<IXGB_MAX_TXD_PWR)

Definition at line 1337 of file ixgb_main.c.

#define IXGB_MAX_INTR   10

Definition at line 1795 of file ixgb_main.c.

#define IXGB_MAX_TXD_PWR   14

Definition at line 1336 of file ixgb_main.c.

#define IXGB_TX_FLAGS_CSUM   0x00000001

Definition at line 1228 of file ixgb_main.c.

#define IXGB_TX_FLAGS_TSO   0x00000004

Definition at line 1230 of file ixgb_main.c.

#define IXGB_TX_FLAGS_VLAN   0x00000002

Definition at line 1229 of file ixgb_main.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file ixgb_main.c.

#define TXD_USE_COUNT (   S)
Value:
(((S) >> IXGB_MAX_TXD_PWR) + \
(((S) & (IXGB_MAX_DATA_PER_TXD - 1)) ? 1 : 0))

Definition at line 1523 of file ixgb_main.c.

Function Documentation

void ixgb_down ( struct ixgb_adapter adapter,
bool  kill_watchdog 
)

Definition at line 279 of file ixgb_main.c.

void ixgb_free_rx_resources ( struct ixgb_adapter adapter)

ixgb_free_rx_resources - Free Rx Resources : board private structure

Free all receive software resources

Definition at line 1006 of file ixgb_main.c.

void ixgb_free_tx_resources ( struct ixgb_adapter adapter)

ixgb_free_tx_resources - Free Tx Resources : board private structure

Free all transmit software resources

Definition at line 925 of file ixgb_main.c.

void ixgb_reset ( struct ixgb_adapter adapter)

Definition at line 308 of file ixgb_main.c.

int ixgb_setup_rx_resources ( struct ixgb_adapter adapter)

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

Returns 0 on success, negative on failure

Definition at line 793 of file ixgb_main.c.

int ixgb_setup_tx_resources ( struct ixgb_adapter adapter)

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

Return 0 on success, negative on failure

Definition at line 704 of file ixgb_main.c.

int ixgb_up ( struct ixgb_adapter adapter)

Definition at line 205 of file ixgb_main.c.

void ixgb_update_stats ( struct ixgb_adapter adapter)

ixgb_update_stats - Update the board statistics counters. : board private structure

Definition at line 1671 of file ixgb_main.c.

MODULE_AUTHOR ( "Intel  Corporation,
< linux.nics @intel.com >"   
)
MODULE_DESCRIPTION ( "Intel(R) PRO/10GbE Network Driver"  )
MODULE_DEVICE_TABLE ( pci  ,
ixgb_pci_tbl   
)
module_exit ( ixgb_exit_module  )
module_init ( ixgb_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( copybreak  ,
uint  ,
0644   
)
module_param ( debug  ,
int  ,
 
)
MODULE_PARM_DESC ( copybreak  ,
"Maximum size of packet that is copied to a new buffer on receive"   
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0=none,...,16=all)"   
)
MODULE_VERSION ( DRV_VERSION  )

Variable Documentation

char ixgb_driver_name[] = "ixgb"

Definition at line 34 of file ixgb_main.c.

const char ixgb_driver_version[] = DRV_VERSION

Definition at line 39 of file ixgb_main.c.