Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
datapath.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/if_arp.h>
#include <linux/if_vlan.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/jhash.h>
#include <linux/delay.h>
#include <linux/time.h>
#include <linux/etherdevice.h>
#include <linux/genetlink.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/percpu.h>
#include <linux/rcupdate.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/ethtool.h>
#include <linux/wait.h>
#include <asm/div64.h>
#include <linux/highmem.h>
#include <linux/netfilter_bridge.h>
#include <linux/netfilter_ipv4.h>
#include <linux/inetdevice.h>
#include <linux/list.h>
#include <linux/openvswitch.h>
#include <linux/rculist.h>
#include <linux/dmi.h>
#include <linux/workqueue.h>
#include <net/genetlink.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include "datapath.h"
#include "flow.h"
#include "vport-internal_dev.h"

Go to the source code of this file.

Data Structures

struct  ovs_net
 
struct  genl_family_and_ops
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define REHASH_FLOW_INTERVAL   (10 * 60 * HZ)
 

Functions

const charovs_dp_name (const struct datapath *dp)
 
struct vportovs_lookup_vport (const struct datapath *dp, u16 port_no)
 
void ovs_dp_detach_port (struct vport *p)
 
void ovs_dp_process_received_packet (struct vport *p, struct sk_buff *skb)
 
int ovs_dp_upcall (struct datapath *dp, struct sk_buff *skb, const struct dp_upcall_info *upcall_info)
 
struct sk_buffovs_vport_cmd_build_info (struct vport *vport, u32 portid, u32 seq, u8 cmd)
 
 module_init (dp_init)
 
 module_exit (dp_cleanup)
 
 MODULE_DESCRIPTION ("Open vSwitch switching datapath")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct genl_multicast_group ovs_dp_vport_multicast_group
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 19 of file datapath.c.

#define REHASH_FLOW_INTERVAL   (10 * 60 * HZ)

Definition at line 70 of file datapath.c.

Function Documentation

MODULE_DESCRIPTION ( "Open vSwitch switching datapath )
module_exit ( dp_cleanup  )
module_init ( dp_init  )
MODULE_LICENSE ( "GPL"  )
void ovs_dp_detach_port ( struct vport p)

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 p,
struct sk_buff skb 
)

Definition at line 201 of file datapath.c.

int ovs_dp_upcall ( struct datapath dp,
struct sk_buff skb,
const struct dp_upcall_info upcall_info 
)

Definition at line 257 of file datapath.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 vport,
u32  portid,
u32  seq,
u8  cmd 
)
read

Definition at line 1562 of file datapath.c.

Variable Documentation

struct genl_multicast_group ovs_dp_vport_multicast_group
Initial value:
= {
}

Definition at line 1518 of file datapath.c.