openvswitch: fix build with kernel >= 3.18.13
[feed/packages.git] / net / openvswitch / patches / 0003-datapath-do-not-add-vlan_hwaccel_push_inside-for-ker.patch
1 From 5919cb26c631b1dd77a745a3c546f9d117ed34b3 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sat, 23 May 2015 18:12:09 +0200
4 Subject: [PATCH] datapath: do not add vlan_hwaccel_push_inside() for kernel >=
5 3.18.13
6
7 The vlan_hwaccel_push_inside() function was backported in this commit
8 to kernel 3.18.13:
9
10 commit a67e2e88342accd49587d9bad72f6dabd7673f7c
11 Author: Jiri Pirko <jiri@resnulli.us>
12 Date: Wed Nov 19 14:04:59 2014 +0100
13
14 vlan: introduce *vlan_hwaccel_push_inside helpers
15
16 [ Upstream commit 5968250c868ceee680aa77395b24e6ddcae17d36 ]
17
18 Without this patch compilation breaks on kernel >= 3.18.13
19
20 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
21 ---
22 datapath/linux/compat/include/linux/if_vlan.h | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 --- a/datapath/linux/compat/include/linux/if_vlan.h
26 +++ b/datapath/linux/compat/include/linux/if_vlan.h
27 @@ -52,7 +52,7 @@ static inline struct sk_buff *rpl_vlan_i
28 }
29 #endif
30
31 -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
32 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,13)
33 /*
34 * __vlan_hwaccel_push_inside - pushes vlan tag to the payload
35 * @skb: skbuff to tag