Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
cxgb3_offload.h File Reference
#include <linux/list.h>
#include <linux/skbuff.h>
#include "l2t.h"
#include "t3cdev.h"
#include "t3_cpl.h"

Go to the source code of this file.

Data Structures

struct  cxgb3_client
 
struct  t3c_tid_entry
 
union  listen_entry
 
union  active_open_entry
 
struct  tid_info
 
struct  t3c_data
 

Macros

#define T3C_DATA(dev)   (*(struct t3c_data **)&(dev)->l4opt)
 

Typedefs

typedef int(* cxgb3_cpl_handler_func )(struct t3cdev *dev, struct sk_buff *skb, void *ctx)
 
typedef int(* cpl_handler_func )(struct t3cdev *dev, struct sk_buff *skb)
 

Enumerations

enum  {
  OFFLOAD_STATUS_UP, OFFLOAD_STATUS_DOWN, OFFLOAD_PORT_DOWN, OFFLOAD_PORT_UP,
  OFFLOAD_DB_FULL, OFFLOAD_DB_EMPTY, OFFLOAD_DB_DROP
}
 
enum  {
  CPL_PRIORITY_DATA = 0, CPL_PRIORITY_SETUP = 1, CPL_PRIORITY_TEARDOWN = 0, CPL_PRIORITY_LISTEN = 1,
  CPL_PRIORITY_ACK = 1, CPL_PRIORITY_CONTROL = 1
}
 
enum  { CPL_RET_BUF_DONE = 1, CPL_RET_BAD_MSG = 2, CPL_RET_UNKNOWN_TID = 4 }
 

Functions

void cxgb3_offload_init (void)
 
void cxgb3_adapter_ofld (struct adapter *adapter)
 
void cxgb3_adapter_unofld (struct adapter *adapter)
 
int cxgb3_offload_activate (struct adapter *adapter)
 
void cxgb3_offload_deactivate (struct adapter *adapter)
 
void cxgb3_set_dummy_ops (struct t3cdev *dev)
 
struct t3cdevdev2t3cdev (struct net_device *dev)
 
void cxgb3_register_client (struct cxgb3_client *client)
 
void cxgb3_unregister_client (struct cxgb3_client *client)
 
void cxgb3_add_clients (struct t3cdev *tdev)
 
void cxgb3_remove_clients (struct t3cdev *tdev)
 
void cxgb3_event_notify (struct t3cdev *tdev, u32 event, u32 port)
 
int cxgb3_alloc_atid (struct t3cdev *dev, struct cxgb3_client *client, void *ctx)
 
int cxgb3_alloc_stid (struct t3cdev *dev, struct cxgb3_client *client, void *ctx)
 
voidcxgb3_free_atid (struct t3cdev *dev, int atid)
 
void cxgb3_free_stid (struct t3cdev *dev, int stid)
 
void cxgb3_insert_tid (struct t3cdev *dev, struct cxgb3_client *client, void *ctx, unsigned int tid)
 
void cxgb3_queue_tid_release (struct t3cdev *dev, unsigned int tid)
 
void cxgb3_remove_tid (struct t3cdev *dev, void *ctx, unsigned int tid)
 
void t3_register_cpl_handler (unsigned int opcode, cpl_handler_func h)
 

Macro Definition Documentation

#define T3C_DATA (   dev)    (*(struct t3c_data **)&(dev)->l4opt)

Definition at line 207 of file cxgb3_offload.h.

Typedef Documentation

typedef int(* cpl_handler_func)(struct t3cdev *dev, struct sk_buff *skb)

Definition at line 129 of file cxgb3_offload.h.

typedef int(* cxgb3_cpl_handler_func)(struct t3cdev *dev, struct sk_buff *skb, void *ctx)

Definition at line 69 of file cxgb3_offload.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
OFFLOAD_STATUS_UP 
OFFLOAD_STATUS_DOWN 
OFFLOAD_PORT_DOWN 
OFFLOAD_PORT_UP 
OFFLOAD_DB_FULL 
OFFLOAD_DB_EMPTY 
OFFLOAD_DB_DROP 

Definition at line 72 of file cxgb3_offload.h.

anonymous enum
Enumerator:
CPL_PRIORITY_DATA 
CPL_PRIORITY_SETUP 
CPL_PRIORITY_TEARDOWN 
CPL_PRIORITY_LISTEN 
CPL_PRIORITY_ACK 
CPL_PRIORITY_CONTROL 

Definition at line 113 of file cxgb3_offload.h.

anonymous enum
Enumerator:
CPL_RET_BUF_DONE 
CPL_RET_BAD_MSG 
CPL_RET_UNKNOWN_TID 

Definition at line 123 of file cxgb3_offload.h.

Function Documentation

void cxgb3_adapter_ofld ( struct adapter adapter)

Definition at line 1385 of file cxgb3_offload.c.

void cxgb3_adapter_unofld ( struct adapter adapter)

Definition at line 1399 of file cxgb3_offload.c.

void cxgb3_add_clients ( struct t3cdev tdev)

cxgb3_add_clients - activate registered clients for an offload device : the offload device

Call backs all registered clients once a offload device is activated

Definition at line 132 of file cxgb3_offload.c.

int cxgb3_alloc_atid ( struct t3cdev dev,
struct cxgb3_client client,
void ctx 
)

Definition at line 648 of file cxgb3_offload.c.

int cxgb3_alloc_stid ( struct t3cdev dev,
struct cxgb3_client client,
void ctx 
)

Definition at line 672 of file cxgb3_offload.c.

void cxgb3_event_notify ( struct t3cdev tdev,
u32  event,
u32  port 
)

Definition at line 163 of file cxgb3_offload.c.

void* cxgb3_free_atid ( struct t3cdev dev,
int  atid 
)

Definition at line 499 of file cxgb3_offload.c.

void cxgb3_free_stid ( struct t3cdev dev,
int  stid 
)

Definition at line 519 of file cxgb3_offload.c.

void cxgb3_insert_tid ( struct t3cdev dev,
struct cxgb3_client client,
void ctx,
unsigned int  tid 
)

Definition at line 533 of file cxgb3_offload.c.

int cxgb3_offload_activate ( struct adapter adapter)

Definition at line 1257 of file cxgb3_offload.c.

void cxgb3_offload_deactivate ( struct adapter adapter)

Definition at line 1327 of file cxgb3_offload.c.

void cxgb3_offload_init ( void  )

Definition at line 1409 of file cxgb3_offload.c.

void cxgb3_queue_tid_release ( struct t3cdev dev,
unsigned int  tid 
)

Definition at line 602 of file cxgb3_offload.c.

void cxgb3_register_client ( struct cxgb3_client client)

cxgb3_register_client - register an offload client : the client

Add the client to the client list, and call backs the client for each activated offload device

Definition at line 83 of file cxgb3_offload.c.

void cxgb3_remove_clients ( struct t3cdev tdev)

cxgb3_remove_clients - deactivates registered clients for an offload device : the offload device

Call backs all registered clients once a offload device is deactivated

Definition at line 151 of file cxgb3_offload.c.

void cxgb3_remove_tid ( struct t3cdev dev,
void ctx,
unsigned int  tid 
)

Definition at line 625 of file cxgb3_offload.c.

void cxgb3_set_dummy_ops ( struct t3cdev dev)

Definition at line 490 of file cxgb3_offload.c.

void cxgb3_unregister_client ( struct cxgb3_client client)

cxgb3_unregister_client - unregister an offload client : the client

Remove the client to the client list, and call backs the client for each activated offload device.

Definition at line 108 of file cxgb3_offload.c.

struct t3cdev* dev2t3cdev ( struct net_device dev)
read

Definition at line 695 of file cxgb3_offload.c.

void t3_register_cpl_handler ( unsigned int  opcode,
cpl_handler_func  h 
)

Definition at line 1008 of file cxgb3_offload.c.