diff options
author | Andrea Bittau <a.bittau@cs.ucl.ac.uk> | 2006-11-14 16:19:45 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 06:22:31 +0100 |
commit | d23ca15a21804631d8f787a0cc5646df81b9c2ea (patch) | |
tree | cd81e5363e700b5b6b61691851abfcb1c17865f2 /net/core/netpoll.c | |
parent | [DCCP]: Miscellaneous code tidy-ups (diff) | |
download | linux-d23ca15a21804631d8f787a0cc5646df81b9c2ea.tar.xz linux-d23ca15a21804631d8f787a0cc5646df81b9c2ea.zip |
[DCCP] ACKVEC: Optimization - Do not traverse records if none will be found
Do not traverse the list of ack vector records [proportional to window size]
when we know we will not find what we are looking for. This is especially
useful because ack vectors are checked twice:
1) Upon parsing of options.
2) Upon notification of a new ack.
All of the work will occur during check #1. Therefore, when check #2 is
performed, no new work will be done. This is now "detected" and there is no
performance hit when doing #2.
Signed-off-by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/core/netpoll.c')
0 files changed, 0 insertions, 0 deletions