Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
nes_cm.c File Reference
#include <linux/atomic.h>
#include <linux/skbuff.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/init.h>
#include <linux/if_arp.h>
#include <linux/if_vlan.h>
#include <linux/notifier.h>
#include <linux/net.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/time.h>
#include <linux/delay.h>
#include <linux/etherdevice.h>
#include <linux/netdevice.h>
#include <linux/random.h>
#include <linux/list.h>
#include <linux/threads.h>
#include <linux/highmem.h>
#include <linux/slab.h>
#include <net/arp.h>
#include <net/neighbour.h>
#include <net/route.h>
#include <net/ip_fib.h>
#include <net/tcp.h>
#include "nes.h"

Go to the source code of this file.

Macros

#define TCPOPT_TIMESTAMP   8
 

Functions

int nes_add_ref_cm_node (struct nes_cm_node *cm_node)
 
int nes_rem_ref_cm_node (struct nes_cm_node *cm_node)
 
int schedule_nes_timer (struct nes_cm_node *cm_node, struct sk_buff *skb, enum nes_timer_type type, int send_retrans, int close_when_complete)
 
int nes_cm_disconn (struct nes_qp *nesqp)
 
int nes_accept (struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
 
int nes_reject (struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
 
int nes_connect (struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
 
int nes_create_listen (struct iw_cm_id *cm_id, int backlog)
 
int nes_destroy_listen (struct iw_cm_id *cm_id)
 
int nes_cm_recv (struct sk_buff *skb, struct net_device *netdevice)
 
int nes_cm_start (void)
 
int nes_cm_stop (void)
 

Variables

u32 cm_packets_sent
 
u32 cm_packets_bounced
 
u32 cm_packets_dropped
 
u32 cm_packets_retrans
 
u32 cm_packets_created
 
u32 cm_packets_received
 
atomic_t cm_listens_created
 
atomic_t cm_listens_destroyed
 
u32 cm_backlog_drops
 
atomic_t cm_loopbacks
 
atomic_t cm_nodes_created
 
atomic_t cm_nodes_destroyed
 
atomic_t cm_accel_dropped_pkts
 
atomic_t cm_resets_recvd
 
atomic_t cm_connects
 
atomic_t cm_accepts
 
atomic_t cm_disconnects
 
atomic_t cm_closes
 
atomic_t cm_connecteds
 
atomic_t cm_connect_reqs
 
atomic_t cm_rejects
 

Macro Definition Documentation

#define TCPOPT_TIMESTAMP   8

Definition at line 35 of file nes_cm.c.

Function Documentation

int nes_accept ( struct iw_cm_id cm_id,
struct iw_cm_conn_param conn_param 
)

nes_accept

Definition at line 2988 of file nes_cm.c.

int nes_add_ref_cm_node ( struct nes_cm_node cm_node)

Definition at line 159 of file nes_cm.c.

int nes_cm_disconn ( struct nes_qp nesqp)

nes_cm_disconn

Definition at line 2770 of file nes_cm.c.

int nes_cm_recv ( struct sk_buff skb,
struct net_device netdevice 
)

nes_cm_recv

Definition at line 3445 of file nes_cm.c.

int nes_cm_start ( void  )

nes_cm_start Start and init a cm core module

Definition at line 3464 of file nes_cm.c.

int nes_cm_stop ( void  )

nes_cm_stop stop and dealloc all cm core instances

Definition at line 3480 of file nes_cm.c.

int nes_connect ( struct iw_cm_id cm_id,
struct iw_cm_conn_param conn_param 
)

nes_connect setup and launch cm connect node

Definition at line 3271 of file nes_cm.c.

int nes_create_listen ( struct iw_cm_id cm_id,
int  backlog 
)

nes_create_listen

Definition at line 3366 of file nes_cm.c.

int nes_destroy_listen ( struct iw_cm_id cm_id)

nes_destroy_listen

Definition at line 3429 of file nes_cm.c.

int nes_reject ( struct iw_cm_id cm_id,
const void pdata,
u8  pdata_len 
)

nes_reject

Definition at line 3238 of file nes_cm.c.

int nes_rem_ref_cm_node ( struct nes_cm_node cm_node)

Definition at line 164 of file nes_cm.c.

int schedule_nes_timer ( struct nes_cm_node cm_node,
struct sk_buff skb,
enum nes_timer_type  type,
int  send_retrans,
int  close_when_complete 
)

schedule_nes_timer note - cm_node needs to be protected before calling this. Encase in: rem_ref_cm_node(cm_core, cm_node);add_ref_cm_node(cm_node);

Definition at line 666 of file nes_cm.c.

Variable Documentation

atomic_t cm_accel_dropped_pkts

Definition at line 77 of file nes_cm.c.

atomic_t cm_accepts

Definition at line 152 of file nes_cm.c.

u32 cm_backlog_drops

Definition at line 73 of file nes_cm.c.

atomic_t cm_closes

Definition at line 154 of file nes_cm.c.

atomic_t cm_connect_reqs

Definition at line 156 of file nes_cm.c.

atomic_t cm_connecteds

Definition at line 155 of file nes_cm.c.

atomic_t cm_connects

Definition at line 151 of file nes_cm.c.

atomic_t cm_disconnects

Definition at line 153 of file nes_cm.c.

atomic_t cm_listens_created

Definition at line 71 of file nes_cm.c.

atomic_t cm_listens_destroyed

Definition at line 72 of file nes_cm.c.

atomic_t cm_loopbacks

Definition at line 74 of file nes_cm.c.

atomic_t cm_nodes_created

Definition at line 75 of file nes_cm.c.

atomic_t cm_nodes_destroyed

Definition at line 76 of file nes_cm.c.

u32 cm_packets_bounced

Definition at line 66 of file nes_cm.c.

u32 cm_packets_created

Definition at line 69 of file nes_cm.c.

u32 cm_packets_dropped

Definition at line 67 of file nes_cm.c.

u32 cm_packets_received

Definition at line 70 of file nes_cm.c.

u32 cm_packets_retrans

Definition at line 68 of file nes_cm.c.

u32 cm_packets_sent

Definition at line 65 of file nes_cm.c.

atomic_t cm_rejects

Definition at line 157 of file nes_cm.c.

atomic_t cm_resets_recvd

Definition at line 78 of file nes_cm.c.