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>
This commit is contained in:
parent
8eba65fa5f
commit
2a968ef60e
3 changed files with 9 additions and 2 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue