Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
l2t.c File Reference
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/if.h>
#include <linux/if_vlan.h>
#include <linux/jhash.h>
#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <net/neighbour.h>
#include "cxgb4.h"
#include "l2t.h"
#include "t4_msg.h"
#include "t4fw_api.h"

Go to the source code of this file.

Data Structures

struct  l2t_data
 

Macros

#define VLAN_NONE   0xfff
 
#define F_SYNC_WR   (1 << 12)
 

Enumerations

enum  {
  L2T_STATE_VALID, L2T_STATE_STALE, L2T_STATE_RESOLVING, L2T_STATE_SYNC_WRITE,
  L2T_STATE_SWITCHING, L2T_STATE_UNUSED
}
 
enum  { L2T_SZ_HALF = L2T_SIZE / 2, L2T_HASH_MASK = L2T_SZ_HALF - 1 }
 

Functions

void do_l2t_write_rpl (struct adapter *adap, const struct cpl_l2t_write_rpl *rpl)
 
int cxgb4_l2t_send (struct net_device *dev, struct sk_buff *skb, struct l2t_entry *e)
 
 EXPORT_SYMBOL (cxgb4_l2t_send)
 
void cxgb4_l2t_release (struct l2t_entry *e)
 
 EXPORT_SYMBOL (cxgb4_l2t_release)
 
struct l2t_entrycxgb4_l2t_get (struct l2t_data *d, struct neighbour *neigh, const struct net_device *physdev, unsigned int priority)
 
 EXPORT_SYMBOL (cxgb4_l2t_get)
 
void t4_l2t_update (struct adapter *adap, struct neighbour *neigh)
 
struct l2t_datat4_init_l2t (void)
 

Variables

struct file_operations t4_l2t_fops
 

Macro Definition Documentation

#define F_SYNC_WR   (1 << 12)

Definition at line 52 of file l2t.c.

#define VLAN_NONE   0xfff

Definition at line 49 of file l2t.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
L2T_STATE_VALID 
L2T_STATE_STALE 
L2T_STATE_RESOLVING 
L2T_STATE_SYNC_WRITE 
L2T_STATE_SWITCHING 
L2T_STATE_UNUSED 

Definition at line 54 of file l2t.c.

anonymous enum
Enumerator:
L2T_SZ_HALF 
L2T_HASH_MASK 

Definition at line 88 of file l2t.c.

Function Documentation

struct l2t_entry* cxgb4_l2t_get ( struct l2t_data d,
struct neighbour neigh,
const struct net_device physdev,
unsigned int  priority 
)
read

Definition at line 359 of file l2t.c.

void cxgb4_l2t_release ( struct l2t_entry e)

Definition at line 330 of file l2t.c.

int cxgb4_l2t_send ( struct net_device dev,
struct sk_buff skb,
struct l2t_entry e 
)

Definition at line 228 of file l2t.c.

void do_l2t_write_rpl ( struct adapter adap,
const struct cpl_l2t_write_rpl rpl 
)

Definition at line 189 of file l2t.c.

EXPORT_SYMBOL ( cxgb4_l2t_send  )
EXPORT_SYMBOL ( cxgb4_l2t_release  )
EXPORT_SYMBOL ( cxgb4_l2t_get  )
struct l2t_data* t4_init_l2t ( void  )
read

Definition at line 487 of file l2t.c.

void t4_l2t_update ( struct adapter adap,
struct neighbour neigh 
)

Definition at line 438 of file l2t.c.

Variable Documentation

struct file_operations t4_l2t_fops
Initial value:
= {
.owner = THIS_MODULE,
.open = l2t_seq_open,
.read = seq_read,
.llseek = seq_lseek,
.release = seq_release,
}

Definition at line 590 of file l2t.c.