diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-05-27 05:04:16 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:47:54 -0400 |
commit | bdf1ee5d3bd38d0c44bd7baa74e07adcbe4ceab1 (patch) | |
tree | c14e3433624e03b7db6a9f30142581342e848ad6 /net/ipv4/tcp_minisocks.c | |
parent | 539d243fdd7900fa5a544c7c154dc3ddf627e840 (diff) |
[TCP]: Move code from tcp_ecn.h to tcp*.c and tcp.h & remove it
No other users exist for tcp_ecn.h. Very few things remain in
tcp.h, for most TCP ECN functions callers reside within a
single .c file and can be placed there.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index a12b08fca5ad..36a8fbd0e64e 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -368,6 +368,12 @@ void tcp_twsk_destructor(struct sock *sk) | |||
368 | 368 | ||
369 | EXPORT_SYMBOL_GPL(tcp_twsk_destructor); | 369 | EXPORT_SYMBOL_GPL(tcp_twsk_destructor); |
370 | 370 | ||
371 | static inline void TCP_ECN_openreq_child(struct tcp_sock *tp, | ||
372 | struct request_sock *req) | ||
373 | { | ||
374 | tp->ecn_flags = inet_rsk(req)->ecn_ok ? TCP_ECN_OK : 0; | ||
375 | } | ||
376 | |||
371 | /* This is not only more efficient than what we used to do, it eliminates | 377 | /* This is not only more efficient than what we used to do, it eliminates |
372 | * a lot of code duplication between IPv4/IPv6 SYN recv processing. -DaveM | 378 | * a lot of code duplication between IPv4/IPv6 SYN recv processing. -DaveM |
373 | * | 379 | * |