projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath:compat: Fix build failure on old kernels.
[cascardo/ovs.git]
/
datapath
/
linux
/
compat
/
gre.c
diff --git
a/datapath/linux/compat/gre.c
b/datapath/linux/compat/gre.c
index
c7f2551
..
1cd885b
100644
(file)
--- a/
datapath/linux/compat/gre.c
+++ b/
datapath/linux/compat/gre.c
@@
-292,6
+292,11
@@
struct sk_buff *gre_handle_offloads(struct sk_buff *skb, bool gre_csum)
skb_reset_inner_headers(skb);
if (skb_is_gso(skb)) {
+ if (skb_is_encapsulated(skb)) {
+ err = -ENOSYS;
+ goto error;
+ }
+
if (gre_csum)
OVS_GSO_CB(skb)->fix_segment = gre_csum_fix;
else