]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[netdevice] Process all received packets in net_poll()
authorMichael Brown <mcb30@ipxe.org>
Sun, 1 Jul 2012 21:47:06 +0000 (22:47 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 4 Jul 2012 12:41:49 +0000 (13:41 +0100)
commitb0e236a9ee512f61d85bc1dfea57fafa04b3f214
treed14a42c0af1eba28bb8ebd4f77d88de81f33427d
parentf3d197a5296027899f51c1df573e2f8709295d65
[netdevice] Process all received packets in net_poll()

The current logic is to process at most one received packet per call
to net_poll(), on the basis that refilling the hardware descriptor
ring should be delayed as little as possible.  However, this limits
the rate at which packets can be processed and ultimately ends up
adding latency which, in turn, limits the achievable throughput.

With temporary modifications in place to essentially remove all
resource constraints (heap size increased to 16MB, RX descriptor ring
increased to 64 descriptors) and a TCP window size of 1MB, the
throughput on a gigabit (i.e. 119MBps) network can be observed to fall
off exponentially from around 115MBps to around 75MBps.  Changing
net_poll() to process all received packets results in a steady
119MBps throughput.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/netdevice.c