2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00
Files
openvswitch/datapath/linux/compat/include/net/netns/generic.h
Pravin B Shelar 2a4999f3f3 datapath: Add support for namespace.
Following patch adds support for Linux net-namespace. Now we can
have independent OVS instance in each net-ns.
Namespace support requires 2.6.32 or newer kernel as per-net-ns
genl-sock is not available in earlier kernel.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>

Bug #7821
2012-01-30 06:56:54 -08:00

13 lines
374 B
C

#ifndef __NET_NET_NETNS_GENERIC_WRAPPER_H
#define __NET_NET_NETNS_GENERIC_WRAPPER_H 1
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
/* <net/netns/generic.h> exists, go ahead and include it. */
#include_next <net/netns/generic.h>
#else
#define net_generic rpl_net_generic
void *net_generic(const struct net *net, int id);
#endif
#endif /* net/netns/generic.h wrapper */