aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-01-17 23:30:03 +0800
committerDavid S. Miller <davem@davemloft.net>2019-01-17 22:09:09 -0800
commitbf97403ac4bfbc9f9f92f47e737aee983d9191f5 (patch)
tree31aa71cd22f620cd6d728b008b509a06bf896480
parentneighbour: Do not perturb drop profiles when neigh_probe (diff)
downloadlinux-dev-bf97403ac4bfbc9f9f92f47e737aee983d9191f5.tar.xz
linux-dev-bf97403ac4bfbc9f9f92f47e737aee983d9191f5.zip
macvlan: replace kfree_skb by consume_skb for drop profiles
Replace the kfree_skb() by consume_skb() to be drop monitor(dropwatch, perf) friendly. Signed-off-by: Yang Wei <yang.wei9@zte.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/macvlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index fc726ce4c164..6d067176320f 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -337,7 +337,7 @@ static void macvlan_process_broadcast(struct work_struct *w)
if (src)
dev_put(src->dev);
- kfree_skb(skb);
+ consume_skb(skb);
}
}