mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
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
13 lines
374 B
C
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 */
|