diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-07 18:41:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-09 21:31:11 +0100 |
commit | f8c783d1df62700c1e4ede30f137f5013b6b729a (patch) | |
tree | 767aa8e6cee3ac8e018ad8cd1fd1401967c79c41 /src/data.c | |
parent | c3afea51639e641460c2d9b53511d90cf2f157d1 (diff) |
data: reset tc when resetting skb
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |