summaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorYang Wei2019-01-17 16:30:03 +0100
committerDavid S. Miller2019-01-18 07:09:09 +0100
commitbf97403ac4bfbc9f9f92f47e737aee983d9191f5 (patch)
tree31aa71cd22f620cd6d728b008b509a06bf896480 /drivers/net/macvlan.c
parentneighbour: Do not perturb drop profiles when neigh_probe (diff)
downloadkernel-qcow2-linux-bf97403ac4bfbc9f9f92f47e737aee983d9191f5.tar.gz
kernel-qcow2-linux-bf97403ac4bfbc9f9f92f47e737aee983d9191f5.tar.xz
kernel-qcow2-linux-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>
Diffstat (limited to 'drivers/net/macvlan.c')
-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);
}
}