OSDN Git Service

tcp: refactor tcp_ecn_check_ce to remove sk type cast
authorYousuk Seung <ysseung@google.com>
Mon, 4 Jun 2018 22:29:51 +0000 (15:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Aug 2018 14:24:41 +0000 (16:24 +0200)
commitcd760ab9f4e13aedccc80f19a0b7863d5c0b3c8c
treebd6f441fbc5dafa4009ff2a31bf64bcc4d60af96
parent96b792d199d17545d6a53faf44b9c91d038f1ab3
tcp: refactor tcp_ecn_check_ce to remove sk type cast

[ Upstream commit f4c9f85f3b2cb7669830cd04d0be61192a4d2436 ]

Refactor tcp_ecn_check_ce and __tcp_ecn_check_ce to accept struct sock*
instead of tcp_sock* to clean up type casts. This is a pure refactor
patch.

Signed-off-by: Yousuk Seung <ysseung@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_input.c