Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
datapath.h File Reference
#include <asm/page.h>
#include <linux/kernel.h>
#include <linux/mutex.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/u64_stats_sync.h>
#include "flow.h"
#include "vport.h"

Go to the source code of this file.

Data Structures

struct  dp_stats_percpu
 
struct  datapath
 
struct  ovs_skb_cb
 
struct  dp_upcall_info
 

Macros

#define DP_MAX_PORTS   USHRT_MAX
 
#define DP_VPORT_HASH_BUCKETS   1024
 
#define SAMPLE_ACTION_DEPTH   3
 
#define OVS_CB(skb)   ((struct ovs_skb_cb *)(skb)->cb)
 

Functions

struct vportovs_lookup_vport (const struct datapath *dp, u16 port_no)
 
void ovs_dp_process_received_packet (struct vport *, struct sk_buff *)
 
void ovs_dp_detach_port (struct vport *)
 
int ovs_dp_upcall (struct datapath *, struct sk_buff *, const struct dp_upcall_info *)
 
const charovs_dp_name (const struct datapath *dp)
 
struct sk_buffovs_vport_cmd_build_info (struct vport *, u32 pid, u32 seq, u8 cmd)
 
int ovs_execute_actions (struct datapath *dp, struct sk_buff *skb)
 

Variables

struct notifier_block ovs_dp_device_notifier
 
struct genl_multicast_group ovs_dp_vport_multicast_group
 

Macro Definition Documentation

#define DP_MAX_PORTS   USHRT_MAX

Definition at line 32 of file datapath.h.

#define DP_VPORT_HASH_BUCKETS   1024

Definition at line 33 of file datapath.h.

#define OVS_CB (   skb)    ((struct ovs_skb_cb *)(skb)->cb)

Definition at line 116 of file datapath.h.

#define SAMPLE_ACTION_DEPTH   3

Definition at line 35 of file datapath.h.

Function Documentation

void ovs_dp_detach_port ( struct vport )

Definition at line 189 of file datapath.c.

const char* ovs_dp_name ( const struct datapath dp)

Definition at line 117 of file datapath.c.

void ovs_dp_process_received_packet ( struct vport ,
struct sk_buff  
)

Definition at line 201 of file datapath.c.

int ovs_dp_upcall ( struct datapath ,
struct sk_buff ,
const struct dp_upcall_info  
)

Definition at line 257 of file datapath.c.

int ovs_execute_actions ( struct datapath dp,
struct sk_buff skb 
)

Definition at line 429 of file actions.c.

struct vport* ovs_lookup_vport ( const struct datapath dp,
u16  port_no 
)
read

Definition at line 158 of file datapath.c.

struct sk_buff* ovs_vport_cmd_build_info ( struct vport ,
u32  pid,
u32  seq,
u8  cmd 
)
read

Definition at line 1562 of file datapath.c.

Variable Documentation

struct notifier_block ovs_dp_device_notifier

Definition at line 66 of file dp_notify.c.

struct genl_multicast_group ovs_dp_vport_multicast_group

Definition at line 1518 of file datapath.c.