Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bnx2fc_fcoe.c File Reference
#include "bnx2fc.h"

Go to the source code of this file.

Macros

#define DRV_MODULE_NAME   "bnx2fc"
 
#define DRV_MODULE_VERSION   BNX2FC_VERSION
 
#define DRV_MODULE_RELDATE   "Jun 04, 2012"
 
#define BNX2FC_MAX_QUEUE_DEPTH   256
 
#define BNX2FC_MIN_QUEUE_DEPTH   32
 
#define FCOE_WORD_TO_BYTE   4
 
#define BNX2FC_INIT_POLL_TIME   (1000 / HZ)
 

Functions

 DEFINE_PER_CPU (struct bnx2fc_percpu_s, bnx2fc_percpu)
 
 MODULE_AUTHOR ("Bhanu Prakash Gollapudi <[email protected]>")
 
 MODULE_DESCRIPTION ("Broadcom NetXtreme II BCM57710 FCoE Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_MODULE_VERSION)
 
 DEFINE_SPINLOCK (bnx2fc_global_lock)
 
 module_param_named (debug_logging, bnx2fc_debug_level, int, S_IRUGO|S_IWUSR)
 
 EXPORT_SYMBOL (bnx2fc_ctlr_get_lesb)
 
int bnx2fc_get_paged_crc_eof (struct sk_buff *skb, int tlen)
 
int bnx2fc_percpu_io_thread (void *arg)
 
void bnx2fc_get_link_state (struct bnx2fc_hba *hba)
 
struct bnx2fc_interfacebnx2fc_interface_create (struct bnx2fc_hba *hba, struct net_device *netdev, enum fip_state fip_mode)
 
 module_init (bnx2fc_mod_init)
 
 module_exit (bnx2fc_mod_exit)
 

Variables

struct workqueue_structbnx2fc_wq
 
struct fcoe_percpu_s bnx2fc_global
 
unsigned int bnx2fc_debug_level
 

Macro Definition Documentation

#define BNX2FC_INIT_POLL_TIME   (1000 / HZ)
#define BNX2FC_MAX_QUEUE_DEPTH   256

Definition at line 38 of file bnx2fc_fcoe.c.

#define BNX2FC_MIN_QUEUE_DEPTH   32

Definition at line 39 of file bnx2fc_fcoe.c.

#define DRV_MODULE_NAME   "bnx2fc"

Definition at line 23 of file bnx2fc_fcoe.c.

#define DRV_MODULE_RELDATE   "Jun 04, 2012"

Definition at line 25 of file bnx2fc_fcoe.c.

#define DRV_MODULE_VERSION   BNX2FC_VERSION

Definition at line 24 of file bnx2fc_fcoe.c.

#define FCOE_WORD_TO_BYTE   4

Definition at line 40 of file bnx2fc_fcoe.c.

Function Documentation

void bnx2fc_get_link_state ( struct bnx2fc_hba hba)

bnx2fc_get_link_state - get network link state

: adapter instance pointer

updates adapter structure flag based on netdev state

Definition at line 790 of file bnx2fc_fcoe.c.

int bnx2fc_get_paged_crc_eof ( struct sk_buff skb,
int  tlen 
)

Definition at line 182 of file bnx2fc_fcoe.c.

struct bnx2fc_interface* bnx2fc_interface_create ( struct bnx2fc_hba hba,
struct net_device netdev,
enum fip_state  fip_mode 
)
read

Definition at line 1396 of file bnx2fc_fcoe.c.

int bnx2fc_percpu_io_thread ( void arg)

bnx2fc_percpu_io_thread - thread per cpu for ios

  • : ptr to bnx2fc_percpu_info structure

Definition at line 635 of file bnx2fc_fcoe.c.

DEFINE_PER_CPU ( struct bnx2fc_percpu_s  ,
bnx2fc_percpu   
)
DEFINE_SPINLOCK ( bnx2fc_global_lock  )
EXPORT_SYMBOL ( bnx2fc_ctlr_get_lesb  )
MODULE_AUTHOR ( "Bhanu Prakash Gollapudi <[email protected]>"  )
MODULE_DESCRIPTION ( "Broadcom NetXtreme II BCM57710 FCoE Driver"  )
module_exit ( bnx2fc_mod_exit  )
module_init ( bnx2fc_mod_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug_logging  ,
bnx2fc_debug_level  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_VERSION ( DRV_MODULE_VERSION  )

Variable Documentation

unsigned int bnx2fc_debug_level

Definition at line 94 of file bnx2fc_fcoe.c.

struct fcoe_percpu_s bnx2fc_global

Definition at line 50 of file bnx2fc_fcoe.c.

Definition at line 45 of file bnx2fc_fcoe.c.