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

Go to the source code of this file.

Data Structures

struct  l2t_entry
 
struct  l2t_data
 
struct  l2t_skb_cb
 

Macros

#define L2T_SKB_CB(skb)   ((struct l2t_skb_cb *)(skb)->cb)
 
#define L2DATA(cdev)   (rcu_dereference((cdev)->l2opt))
 
#define W_TCB_L2T_IX   0
 
#define S_TCB_L2T_IX   7
 
#define M_TCB_L2T_IX   0x7ffULL
 
#define V_TCB_L2T_IX(x)   ((x) << S_TCB_L2T_IX)
 

Typedefs

typedef void(* arp_failure_handler_func )(struct t3cdev *dev, struct sk_buff *skb)
 

Enumerations

enum  { L2T_STATE_VALID, L2T_STATE_STALE, L2T_STATE_RESOLVING, L2T_STATE_UNUSED }
 

Functions

void t3_l2e_free (struct l2t_data *d, struct l2t_entry *e)
 
void t3_l2t_update (struct t3cdev *dev, struct neighbour *neigh)
 
struct l2t_entryt3_l2t_get (struct t3cdev *cdev, struct dst_entry *dst, struct net_device *dev, const void *daddr)
 
int t3_l2t_send_slow (struct t3cdev *dev, struct sk_buff *skb, struct l2t_entry *e)
 
void t3_l2t_send_event (struct t3cdev *dev, struct l2t_entry *e)
 
struct l2t_datat3_init_l2t (unsigned int l2t_capacity)
 
void t3_free_l2t (struct l2t_data *d)
 
int cxgb3_ofld_send (struct t3cdev *dev, struct sk_buff *skb)
 

Macro Definition Documentation

#define L2DATA (   cdev)    (rcu_dereference((cdev)->l2opt))

Definition at line 103 of file l2t.h.

#define L2T_SKB_CB (   skb)    ((struct l2t_skb_cb *)(skb)->cb)

Definition at line 92 of file l2t.h.

#define M_TCB_L2T_IX   0x7ffULL

Definition at line 107 of file l2t.h.

#define S_TCB_L2T_IX   7

Definition at line 106 of file l2t.h.

#define V_TCB_L2T_IX (   x)    ((x) << S_TCB_L2T_IX)

Definition at line 108 of file l2t.h.

#define W_TCB_L2T_IX   0

Definition at line 105 of file l2t.h.

Typedef Documentation

typedef void(* arp_failure_handler_func)(struct t3cdev *dev, struct sk_buff *skb)

Definition at line 82 of file l2t.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
L2T_STATE_VALID 
L2T_STATE_STALE 
L2T_STATE_RESOLVING 
L2T_STATE_UNUSED 

Definition at line 39 of file l2t.h.

Function Documentation

int cxgb3_ofld_send ( struct t3cdev dev,
struct sk_buff skb 
)

Definition at line 1047 of file cxgb3_offload.c.

void t3_free_l2t ( struct l2t_data d)

Definition at line 466 of file l2t.c.

struct l2t_data* t3_init_l2t ( unsigned int  l2t_capacity)
read

Definition at line 442 of file l2t.c.

void t3_l2e_free ( struct l2t_data d,
struct l2t_entry e 
)

Definition at line 263 of file l2t.c.

struct l2t_entry* t3_l2t_get ( struct t3cdev cdev,
struct dst_entry dst,
struct net_device dev,
const void daddr 
)
read

Definition at line 301 of file l2t.c.

void t3_l2t_send_event ( struct t3cdev dev,
struct l2t_entry e 
)

Definition at line 178 of file l2t.c.

int t3_l2t_send_slow ( struct t3cdev dev,
struct sk_buff skb,
struct l2t_entry e 
)

Definition at line 128 of file l2t.c.

void t3_l2t_update ( struct t3cdev dev,
struct neighbour neigh 
)

Definition at line 398 of file l2t.c.