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:31:04 +0000 (16:31 -0800)
commitaaa9bcd96008a3d7879c3a679625c7ff61b6360b
tree87bc7ee39dbcce9639e20b17288eacff4a855a8d
parent156f251f74fc547065adc2aef8955f70f3237a71
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