]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: neigh: use kfree_skb_reason() in neigh_resolve_output() and neigh_connected_output()
authorQiu Yutan <qiu.yutan@zte.com.cn>
Wed, 21 May 2025 02:14:08 +0000 (10:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 May 2025 09:03:13 +0000 (10:03 +0100)
commite45b7196df60a4aef86c3998611c91fcc93d21f3
treecb8ef62696e14ebea01cbf65906f1d53c0f9f7b9
parent8ceeef23a3a7b077caa98be713c09a4cdfbd018f
net: neigh: use kfree_skb_reason() in neigh_resolve_output() and neigh_connected_output()

Replace kfree_skb() used in neigh_resolve_output() and
neigh_connected_output() with kfree_skb_reason().

Following new skb drop reason is added:
/* failed to fill the device hard header */
SKB_DROP_REASON_NEIGH_HH_FILLFAIL

Signed-off-by: Qiu Yutan <qiu.yutan@zte.com.cn>
Signed-off-by: Jiang Kun <jiang.kun2@zte.com.cn>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Xu Xin <xu.xin16@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dropreason-core.h
net/core/neighbour.c