summaryrefslogtreecommitdiff
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
parent87fff3cacd0112bcaf42f932c1e44ae32b42f1fb (diff)
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);
}
}