OSDN Git Service

tcp: remove redundant code in __tcp_retransmit_skb()
authorNeal Cardwell <ncardwell@google.com>
Wed, 16 Oct 2013 16:36:51 +0000 (12:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Oct 2013 20:22:00 +0000 (16:22 -0400)
commit675297c904b419542a93de64afaf2a6bd72e35e3
tree2c73b7552438a7f643be48ccbf0d76f587465a92
parent3ba405db1c1b05d157474c71e559393f7ea436ad
tcp: remove redundant code in __tcp_retransmit_skb()

Remove the specialized code in __tcp_retransmit_skb() that tries to trim
any ACKed payload preceding a FIN before we retransmit (this was added
in 1999 in v2.2.3pre3). This trimming code was made unreachable by the
more general code added above it that uses tcp_trim_head() to trim any
ACKed payload, with or without a FIN (this was added in "[NET]: Add
segmentation offload support to TCP." in 2002 circa v2.5.33).

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c