From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: Eric Dumazet <eric.dumazet@gmail.com>,
netdev@vger.kernel.org, cake@lists.bufferbloat.net
Subject: Re: [Cake] [PATCH net-next v13 3/7] sch_cake: Add optional ACK filter
Date: Mon, 21 May 2018 19:35:35 +0200 [thread overview]
Message-ID: <87r2m4ykrc.fsf@toke.dk> (raw)
In-Reply-To: <f7a7917b-9d81-b192-514b-3861321a4892@gmail.com>
Eric Dumazet <eric.dumazet@gmail.com> writes:
> On 05/21/2018 09:24 AM, Toke Høiland-Jørgensen wrote:
>
>> + while (oplen_tmp >= 8) {
>> + u32 right_b = get_unaligned_be32(sack_tmp + 4);
>> + u32 left_b = get_unaligned_be32(sack_tmp);
>> +
>> + if (left_b >= right_b)
>> + continue;
>> +
>> + if (first)
>> + bytes_b += right_b - left_b;
>> +
>> + if (left_b <= left_a && right_a <= right_b) {
>> + found = true;
>> + if (!first)
>> + break;
>> + }
>> + oplen_tmp -= 8;
>> + sack_tmp += 8;
>> + }
>>
>
> This is obviously incorrect.
>
> Please take a look at TCP stack, and how it handles sequence wrapping
> with following macros :
>
> after(), before()
Ah yes, sequence number wrapping. I was thinking I needed to deal with
that, and then got sidetracked and forgot about it. Will fix.
Other than that, do you agree that this approach to SACK and header
handling can work?
> Quite frankly O wonder how this was really tested.
Getting it wrong results in a few drop decisions being wrong every 2**32
bytes; easy to miss. If you have a "mis-behaving middle-box test suite"
or something I'll be happy to hear about it :)
-Toke
next prev parent reply other threads:[~2018-05-21 17:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-21 16:24 [Cake] [PATCH net-next v13 0/7] sched: Add Common Applications Kept Enhanced (cake) qdisc Toke Høiland-Jørgensen
2018-05-21 16:24 ` [Cake] [PATCH net-next v13 4/7] sch_cake: Add NAT awareness to packet classifier Toke Høiland-Jørgensen
2018-05-21 16:24 ` [Cake] [PATCH net-next v13 1/7] sched: Add Common Applications Kept Enhanced (cake) qdisc Toke Høiland-Jørgensen
2018-05-21 16:24 ` [Cake] [PATCH net-next v13 7/7] sch_cake: Conditionally split GSO segments Toke Høiland-Jørgensen
2018-05-21 16:24 ` [Cake] [PATCH net-next v13 6/7] sch_cake: Add overhead compensation support to the rate shaper Toke Høiland-Jørgensen
2018-05-21 16:24 ` [Cake] [PATCH net-next v13 2/7] sch_cake: Add ingress mode Toke Høiland-Jørgensen
2018-05-21 16:24 ` [Cake] [PATCH net-next v13 5/7] sch_cake: Add DiffServ handling Toke Høiland-Jørgensen
2018-05-21 16:24 ` [Cake] [PATCH net-next v13 3/7] sch_cake: Add optional ACK filter Toke Høiland-Jørgensen
2018-05-21 17:18 ` Eric Dumazet
2018-05-21 17:35 ` Toke Høiland-Jørgensen [this message]
2018-05-21 18:08 ` Eric Dumazet
2018-05-21 18:17 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2m4ykrc.fsf@toke.dk \
--to=toke@toke.dk \
--cc=cake@lists.bufferbloat.net \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox