aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit63ec3df80354d540193cb010232b255584d91ce5 (patch)
treea42e995ac6c07a2432ab21739813820f117290d1
parentcompat: ssse3 support (diff)
downloadwireguard-monolithic-historical-63ec3df80354d540193cb010232b255584d91ce5.tar.xz
wireguard-monolithic-historical-63ec3df80354d540193cb010232b255584d91ce5.zip
compat: work around ubnt offloading
-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;