tcp: allow tcp_sacktag_one() to tag ranges not aligned with skbs
authorNeal Cardwell <ncardwell@google.com>
Sun, 12 Feb 2012 18:37:09 +0000 (18:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:34:16 +0000 (16:34 -0800)
commit382e8f84cb3db5295aa2f142a11e42eac6544ab4
tree8702597132aa738d859af3c9607e023b2c8626a0
parent39b73fb4fedd23980b720d0272e5e26510cd6940
tcp: allow tcp_sacktag_one() to tag ranges not aligned with skbs

[ Upstream commit cc9a672ee522d4805495b98680f4a3db5d0a0af9 ]

This commit allows callers of tcp_sacktag_one() to pass in sequence
ranges that do not align with skb boundaries, as tcp_shifted_skb()
needs to do in an upcoming fix in this patch series.

In fact, now tcp_sacktag_one() does not need to depend on an input skb
at all, which makes its semantics and dependencies more clear.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_input.c