aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorMenglong Dong <[email protected]>2022-02-26 04:18:31 +0000
committerDavid S. Miller <[email protected]>2022-02-26 12:53:59 +0000
commit56d4b4e48ace91ee4e41991438e0e11688750617 (patch)
treea361b481994e7ec96d210132f6c59d25ca70dbcc /drivers/net/dsa/dsa_loop.c
parentnet: neigh: use kfree_skb_reason() for __neigh_event_send() (diff)
downloadkernel-56d4b4e48ace91ee4e41991438e0e11688750617.tar.gz
kernel-56d4b4e48ace91ee4e41991438e0e11688750617.zip
net: neigh: add skb drop reasons to arp_error_report()
When neighbour become invalid or destroyed, neigh_invalidate() will be called. neigh->ops->error_report() will be called if the neighbour's state is NUD_FAILED, and seems here is the only use of error_report(). So we can tell that the reason of skb drops in arp_error_report() is SKB_DROP_REASON_NEIGH_FAILED. Replace kfree_skb() used in arp_error_report() with kfree_skb_reason(). Reviewed-by: Mengen Sun <[email protected]> Reviewed-by: Hao Peng <[email protected]> Signed-off-by: Menglong Dong <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions