Skip to content

Commit

Permalink
tcp: Remove unused tw_cookie_values from tcp_timewait_sock
Browse files Browse the repository at this point in the history
tw_cookie_values is never used in the TCP-stack.

It was added by 435cf55 (TCPCT part 1d: define TCP cookie option,
extend existing struct's), but already at that time it was not used at
all, nor mentioned in the commit-message.

Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Christoph Paasch authored and David S. Miller committed Mar 10, 2013
1 parent 624e2d2 commit e61667a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/linux/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,6 @@ struct tcp_timewait_sock {
#ifdef CONFIG_TCP_MD5SIG
struct tcp_md5sig_key *tw_md5_key;
#endif
/* Few sockets in timewait have cookies; in that case, then this
* object holds a reference to them (tw_cookie_values->kref).
*/
struct tcp_cookie_values *tw_cookie_values;
};

static inline struct tcp_timewait_sock *tcp_twsk(const struct sock *sk)
Expand Down

0 comments on commit e61667a

Please sign in to comment.