forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datapath: Add support for 4.2 kernel.
- Loading branch information
Pravin B Shelar
committed
Sep 24, 2015
1 parent
3f97b66
commit fdce83a
Showing
11 changed files
with
61 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <linux/module.h> | ||
#include <linux/errno.h> | ||
#include <linux/socket.h> | ||
#include <linux/udp.h> | ||
#include <linux/types.h> | ||
#include <linux/kernel.h> | ||
#include <net/ip_tunnels.h> | ||
#include <net/udp.h> | ||
#include <net/udp_tunnel.h> | ||
#include <net/net_namespace.h> | ||
|
||
|
||
#ifndef HAVE_SOCK_CREATE_KERN_NET | ||
#undef sock_create_kern | ||
|
||
int ovs_sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res) | ||
{ | ||
int err; | ||
|
||
err = sock_create_kern(family, type, protocol, res); | ||
if (err < 0) | ||
return err; | ||
|
||
sk_change_net((*res)->sk, net); | ||
return err; | ||
} | ||
#undef sk_release_kernel | ||
void ovs_sock_release(struct socket *sock) | ||
{ | ||
sk_release_kernel(sock->sk); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters