summaryrefslogtreecommitdiffhomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-09 14:20:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-17 17:11:12 +0200
commitdd5256872f6cc84f03e4ce32e3be853279987e3d (patch)
tree87e209d71fb4a9488a216098ac4a6d53d1986e61 /src/compat
parent89d400ab5fedbe30982bfb278158a5cf1abbf239 (diff)
compat: work around ubnt offloading
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index ffc5ce1..5d5f714 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -168,6 +168,10 @@ static inline void *our_pskb_put(struct sk_buff *skb, struct sk_buff *tail, int
#include <net/xfrm.h>
static inline void skb_scrub_packet(struct sk_buff *skb, bool xnet)
{
+#ifdef CONFIG_CAVIUM_OCTEON_IPFWD_OFFLOAD
+ memset(&skb->cvm_info, 0, sizeof(skb->cvm_info));
+ skb->cvm_reserved = 0;
+#endif
skb->tstamp.tv64 = 0;
skb->pkt_type = PACKET_HOST;
skb->skb_iif = 0;