]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2012 06:00:21 +0000 (01:00 -0500)
commit0f034aa5e011e034f8e61c4916f8b683cf5980e8
tree391c58df73783b8b662f638e14e1f48aa83578e4
parent9e4af2ec05b081b81b0294d913e26f3ef3497e0d
tcp: allow tcp_sacktag_one() to tag ranges not aligned with skbs

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>
net/ipv4/tcp_input.c