]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: kill pointless urg_mode
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Tue, 7 Oct 2008 21:43:06 +0000 (14:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Oct 2008 21:43:06 +0000 (14:43 -0700)
commit2d8256e170c61d0eb451bc61468b6903475b6bfd
tree4bd3421bfa3088018f8e355e6f47e43599748802
parenta58cb08f8a2c9cffe535e162a3d95a688d2836fa
tcp: kill pointless urg_mode

It all started from me noticing that this urgent check in
tcp_clean_rtx_queue is unnecessarily inside the loop. Then
I took a longer look to it and found out that the users of
urg_mode can trivially do without, well almost, there was
one gotcha.

Bonus: those funny people who use urg with >= 2^31 write_seq -
snd_una could now rejoice too (that's the only purpose for the
between being there, otherwise a simple compare would have done
the thing). Not that I assume that the rest of the tcp code
happily lives with such mind-boggling numbers :-). Alas, it
turned out to be impossible to set wmem to such numbers anyway,
yes I really tried a big sendfile after setting some wmem but
nothing happened :-). ...Tcp_wmem is int and so is sk_sndbuf...
So I hacked a bit variable to long and found out that it seems
to work... :-)

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_output.c