diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-01-17 23:30:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-17 22:09:09 -0800 |
commit | bf97403ac4bfbc9f9f92f47e737aee983d9191f5 (patch) | |
tree | 31aa71cd22f620cd6d728b008b509a06bf896480 /drivers/net | |
parent | 87fff3cacd0112bcaf42f932c1e44ae32b42f1fb (diff) | |
download | linux-bf97403ac4bfbc9f9f92f47e737aee983d9191f5.tar.gz linux-bf97403ac4bfbc9f9f92f47e737aee983d9191f5.tar.bz2 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')
-rw-r--r-- | drivers/net/macvlan.c | 2 |
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); } } |