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>
This commit is contained in:
committed by
David S. Miller
parent
87fff3cacd
commit
bf97403ac4
@@ -337,7 +337,7 @@ static void macvlan_process_broadcast(struct work_struct *w)
|
|||||||
|
|
||||||
if (src)
|
if (src)
|
||||||
dev_put(src->dev);
|
dev_put(src->dev);
|
||||||
kfree_skb(skb);
|
consume_skb(skb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user