datapath: Fix pop_vlan().
[openvswitch] / datapath / linux / compat / include / linux / skbuff.h
index 456d7446736c357e6467b1f5cbb66f9058fb384d..311bfdbc60dc7a66bd6ce5d8881ffaf77bb63f18 100644 (file)
@@ -239,4 +239,10 @@ static inline struct page *skb_frag_page(const skb_frag_t *frag)
 }
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)
+static inline void skb_reset_mac_len(struct sk_buff *skb)
+{
+       skb->mac_len = skb->network_header - skb->mac_header;
+}
+#endif
 #endif