aboutsummaryrefslogtreecommitdiff
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorGravatar Menglong Dong <imagedong@tencent.com> 2022-02-20 15:06:35 +0800
committerGravatar David S. Miller <davem@davemloft.net> 2022-02-20 13:55:31 +0000
commit2a968ef60e1fac4e694d9f60ce19a3b66b40e8c3 (patch)
tree67a6462d44dd2a9700b20c4cf835a6ad6e32351a /include/linux/skbuff.h
parentnet: tcp: use kfree_skb_reason() for tcp_v{4,6}_do_rcv() (diff)
downloadlinux-2a968ef60e1fac4e694d9f60ce19a3b66b40e8c3.tar.gz
linux-2a968ef60e1fac4e694d9f60ce19a3b66b40e8c3.tar.bz2
linux-2a968ef60e1fac4e694d9f60ce19a3b66b40e8c3.zip
net: tcp: use tcp_drop_reason() for tcp_rcv_established()
Replace tcp_drop() used in tcp_rcv_established() with tcp_drop_reason(). Following drop reasons are added: SKB_DROP_REASON_TCP_FLAGS Reviewed-by: Mengen Sun <mengensun@tencent.com> Reviewed-by: Hao Peng <flyingpeng@tencent.com> Signed-off-by: Menglong Dong <imagedong@tencent.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index f7f33c79945b..671db9f49efe 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -362,6 +362,7 @@ enum skb_drop_reason {
* backlog (see
* LINUX_MIB_TCPBACKLOGDROP)
*/
+ SKB_DROP_REASON_TCP_FLAGS, /* TCP flags invalid */
SKB_DROP_REASON_MAX,
};