* [PATCH] tcp: Remove unused tcpct declarations and comments
@ 2013-07-31 9:39 Dmitry Popov
2013-07-31 11:08 ` Christoph Paasch
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Popov @ 2013-07-31 9:39 UTC (permalink / raw)
To: David S. Miller, Alexey Kuznetsov, James Morris,
Hideaki YOSHIFUJI, Patrick McHardy, Eric Dumazet, Neal Cardwell
Cc: netdev, linux-kernel, trivial
Remove declaration, 4 defines and confusing comment that are no longer used
since 1a2c6181c4 ("tcp: Remove TCPCT").
Signed-off-by: Dmitry Popov <dp@highloadlab.com>
---
include/linux/tcp.h | 1 -
include/net/tcp.h | 4 ----
net/ipv4/tcp.c | 4 ----
3 files changed, 9 deletions(-)
diff --git a/include/linux/tcp.h b/include/linux/tcp.h
index 472120b..b7e01bc 100644
--- a/include/linux/tcp.h
+++ b/include/linux/tcp.h
@@ -107,7 +107,6 @@ static inline void tcp_clear_options(struct tcp_options_received *rx_opt)
* only four options will fit in a standard TCP header */
#define TCP_NUM_SACKS 4
-struct tcp_cookie_values;
struct tcp_request_sock_ops;
struct tcp_request_sock {
diff --git a/include/net/tcp.h b/include/net/tcp.h
index d198005..fa6893c 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -192,10 +192,6 @@ extern void tcp_time_wait(struct sock *sk, int state, int timeo);
#define TCPOLEN_TIMESTAMP 10
#define TCPOLEN_MD5SIG 18
#define TCPOLEN_EXP_FASTOPEN_BASE 4
-#define TCPOLEN_COOKIE_BASE 2 /* Cookie-less header extension */
-#define TCPOLEN_COOKIE_PAIR 3 /* Cookie pair header extension */
-#define TCPOLEN_COOKIE_MIN (TCPOLEN_COOKIE_BASE+TCP_COOKIE_MIN)
-#define TCPOLEN_COOKIE_MAX (TCPOLEN_COOKIE_BASE+TCP_COOKIE_MAX)
/* But this is what stacks really send out. */
#define TCPOLEN_TSTAMP_ALIGNED 12
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 5423223..077abde 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -410,10 +410,6 @@ void tcp_init_sock(struct sock *sk)
icsk->icsk_sync_mss = tcp_sync_mss;
- /* Presumed zeroed, in order of appearance:
- * cookie_in_always, cookie_out_never,
- * s_data_constant, s_data_in, s_data_out
- */
sk->sk_sndbuf = sysctl_tcp_wmem[1];
sk->sk_rcvbuf = sysctl_tcp_rmem[1];
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tcp: Remove unused tcpct declarations and comments
2013-07-31 9:39 [PATCH] tcp: Remove unused tcpct declarations and comments Dmitry Popov
@ 2013-07-31 11:08 ` Christoph Paasch
2013-07-31 19:16 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Paasch @ 2013-07-31 11:08 UTC (permalink / raw)
To: Dmitry Popov
Cc: David S. Miller, Alexey Kuznetsov, James Morris,
Hideaki YOSHIFUJI, Patrick McHardy, Eric Dumazet, Neal Cardwell,
netdev, linux-kernel, trivial
On 31/07/13 - 13:39:45, Dmitry Popov wrote:
> Remove declaration, 4 defines and confusing comment that are no longer used
> since 1a2c6181c4 ("tcp: Remove TCPCT").
>
> Signed-off-by: Dmitry Popov <dp@highloadlab.com>
> ---
> include/linux/tcp.h | 1 -
> include/net/tcp.h | 4 ----
> net/ipv4/tcp.c | 4 ----
> 3 files changed, 9 deletions(-)
Sorry, I oversaw these when removing TCPCT.
Acked-by: Christoph Paasch <christoph.paasch@uclouvain.be>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tcp: Remove unused tcpct declarations and comments
2013-07-31 11:08 ` Christoph Paasch
@ 2013-07-31 19:16 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2013-07-31 19:16 UTC (permalink / raw)
To: christoph.paasch
Cc: dp, kuznet, jmorris, yoshfuji, kaber, edumazet, ncardwell,
netdev, linux-kernel, trivial
From: Christoph Paasch <christoph.paasch@gmail.com>
Date: Wed, 31 Jul 2013 13:08:21 +0200
> On 31/07/13 - 13:39:45, Dmitry Popov wrote:
>> Remove declaration, 4 defines and confusing comment that are no longer used
>> since 1a2c6181c4 ("tcp: Remove TCPCT").
>>
>> Signed-off-by: Dmitry Popov <dp@highloadlab.com>
>> ---
>> include/linux/tcp.h | 1 -
>> include/net/tcp.h | 4 ----
>> net/ipv4/tcp.c | 4 ----
>> 3 files changed, 9 deletions(-)
>
> Sorry, I oversaw these when removing TCPCT.
>
> Acked-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-31 19:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-31 9:39 [PATCH] tcp: Remove unused tcpct declarations and comments Dmitry Popov
2013-07-31 11:08 ` Christoph Paasch
2013-07-31 19:16 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).