On 2/5/22 12:47 AM, menglong8.dong@xxxxxxxxx wrote: > From: Menglong Dong <imagedong@xxxxxxxxxxx> > > Replace kfree_skb() with kfree_skb_reason() in ip_rcv_core(). Three new > drop reasons are introduced: > > SKB_DROP_REASON_OTHERHOST > SKB_DROP_REASON_IP_CSUM > SKB_DROP_REASON_IP_INHDR > > Signed-off-by: Menglong Dong <imagedong@xxxxxxxxxxx> > --- > v4: > - stop making assumptions about the value of > SKB_DROP_REASON_NOT_SPECIFIED > > v3: > - add a path to SKB_DROP_REASON_PKT_TOO_SMALL > > v2: > - remove unrelated cleanup > - add document for introduced drop reasons > --- > include/linux/skbuff.h | 9 +++++++++ > include/trace/events/skb.h | 3 +++ > net/ipv4/ip_input.c | 12 ++++++++++-- > 3 files changed, 22 insertions(+), 2 deletions(-) > Reviewed-by: David Ahern <dsahern@xxxxxxxxxx>