Patch fixes following compilation error.

  CHECK   /home/travis/build/openvswitch/ovs/datapath/linux/gso.c \
        /home/travis/build/openvswitch/ovs/datapath/linux/gso.c:222:12: error:
                no member 'encapsulation' in struct sk_buff

Reported-by: Joe Stringer <j...@ovn.org>
Signed-off-by: Pravin B Shelar <pshe...@ovn.org>
---
 datapath/linux/compat/gso.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/datapath/linux/compat/gso.c b/datapath/linux/compat/gso.c
index 34e5b75..be41e6e 100644
--- a/datapath/linux/compat/gso.c
+++ b/datapath/linux/compat/gso.c
@@ -219,8 +219,9 @@ static struct sk_buff *tnl_skb_gso_segment(struct sk_buff 
*skb,
         * make copy of it to restore it back. */
        memcpy(cb, skb->cb, sizeof(cb));
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
        skb->encapsulation = 0;
-
+#endif
        /* We are handling offloads by segmenting l3 packet, so
         * no need to call OVS compat segmentation function. */
 
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to