diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-09 14:20:04 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-17 17:11:12 +0200 |
commit | dd5256872f6cc84f03e4ce32e3be853279987e3d (patch) | |
tree | 87e209d71fb4a9488a216098ac4a6d53d1986e61 /src/compat | |
parent | 89d400ab5fedbe30982bfb278158a5cf1abbf239 (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.h | 4 |
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; |