mirror of
https://github.com/openvswitch/ovs
synced 2025-10-19 14:37:21 +00:00
datapath: Add support for RHEL-7 / CentOS-7 kernel.
This patch mostly is related to tunnel API where RHEL 7 kernel API are not in-sync with newer linux kernel API. So extra checks are required to check for parameters of API. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jiri Benc <jbenc@redhat.com>
This commit is contained in:
@@ -408,7 +408,7 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb,
|
||||
struct sk_buff *user_skb = NULL; /* to be queued to userspace */
|
||||
struct nlattr *nla;
|
||||
struct genl_info info = {
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
|
||||
#ifdef HAVE_GENLMSG_NEW_UNICAST
|
||||
.dst_sk = ovs_dp_get_net(dp)->genl_sock,
|
||||
#endif
|
||||
.snd_portid = upcall_info->portid,
|
||||
|
Reference in New Issue
Block a user