]> git.michaelhowe.org Git - packages/o/openafs.git/commit
rx: Don't call gettimeofday for every packet ack
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 5 Oct 2010 20:21:38 +0000 (21:21 +0100)
committerDerrick Brashear <shadow@dementia.org>
Mon, 25 Oct 2010 23:31:23 +0000 (16:31 -0700)
commit429c364e8c9e33eef8edab0c144c10105efac3f8
treec84db13545bc564705e6cd9aaf4a182c2cb5d1c6
parent6edebf1d04350c082c4ededc168fbd69142eed56
rx: Don't call gettimeofday for every packet ack

Every time we receive an ACK packet, we call gettimeofday() for
every entry in the transmit queue that's permanently ack'd by that
packet. Instead, just make a note of the time when we start
processing the packet queue, and use it for every packet in the
queue.

This shaves around 5% off rxperf's runtime with a window size of 128.

Reviewed-on: http://gerrit.openafs.org/2956
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit e16d7b7d6a6980fbda3186a578fb7e26fc334194)
Change-Id: Ib77ea09f2b2334ccae269a5e24519cd8b0f0875a
Reviewed-on: http://gerrit.openafs.org/3059
Tested-by: Derrick Brashear <shadow@dementia.org>
src/rx/rx.c
src/rx/rx_prototypes.h