* [PATCH 2/2] macvlan: replace kfree_skb by consume_skb for drop profiles
@ 2019-01-17 15:30 Yang Wei
2019-01-18 6:09 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yang Wei @ 2019-01-17 15:30 UTC (permalink / raw)
To: netdev; +Cc: davem, yang.wei9
From: Yang Wei <yang.wei9@zte.com.cn>
Replace the kfree_skb() by consume_skb() to be drop monitor(dropwatch,
perf) friendly.
Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
---
drivers/net/macvlan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index fc726ce..6d06717 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);
}
}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] macvlan: replace kfree_skb by consume_skb for drop profiles
2019-01-17 15:30 [PATCH 2/2] macvlan: replace kfree_skb by consume_skb for drop profiles Yang Wei
@ 2019-01-18 6:09 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-01-18 6:09 UTC (permalink / raw)
To: albin_yang; +Cc: netdev, yang.wei9
From: Yang Wei <albin_yang@163.com>
Date: Thu, 17 Jan 2019 23:30:03 +0800
> From: Yang Wei <yang.wei9@zte.com.cn>
>
> Replace the kfree_skb() by consume_skb() to be drop monitor(dropwatch,
> perf) friendly.
>
> Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-18 6:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-17 15:30 [PATCH 2/2] macvlan: replace kfree_skb by consume_skb for drop profiles Yang Wei
2019-01-18 6:09 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).