summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-07 18:41:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-09 21:31:11 +0100
commitf8c783d1df62700c1e4ede30f137f5013b6b729a (patch)
tree767aa8e6cee3ac8e018ad8cd1fd1401967c79c41
parentc3afea51639e641460c2d9b53511d90cf2f157d1 (diff)
data: reset tc when resetting skb
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/data.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index 75b96a1..628a3ce 100644
--- a/src/data.c
+++ b/src/data.c
@@ -122,6 +122,12 @@ static inline void skb_reset(struct sk_buff *skb)
skb->peeked = 0;
skb->mac_len = 0;
skb->dev = NULL;
+#ifdef CONFIG_NET_SCHED
+ skb->tc_index = 0;
+#ifdef CONFIG_NET_CLS_ACT
+ skb->tc_verd = 0;
+#endif
+#endif
skb->hdr_len = skb_headroom(skb);
skb_reset_mac_header(skb);
skb_reset_network_header(skb);