Re: [PATCH v8 net-next] net: drop_monitor: support drop reason

From: Ido Schimmel
Date: Wed Feb 09 2022 - 11:22:23 EST


On Wed, Feb 09, 2022 at 02:08:38PM +0800, menglong8.dong@xxxxxxxxx wrote:
> From: Menglong Dong <imagedong@xxxxxxxxxxx>
>
> In the commit c504e5c2f964 ("net: skb: introduce kfree_skb_reason()")
> drop reason is introduced to the tracepoint of kfree_skb. Therefore,
> drop_monitor is able to report the drop reason to users by netlink.
>
> The drop reasons are reported as string to users, which is exactly
> the same as what we do when reporting it to ftrace.
>
> Signed-off-by: Menglong Dong <imagedong@xxxxxxxxxxx>

Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>