From: willy tarreau Date: Thu, 16 Jan 2014 07:20:07 +0000 (+0100) Subject: net: mvneta: increase the 64-bit rx/tx stats out of the hot path X-Git-Tag: v3.14-rc1~94^2~146^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc4277dd41a80fd5f29a90412ea04bc3ba54fbf1;p=pandora-kernel.git net: mvneta: increase the 64-bit rx/tx stats out of the hot path Better count packets and bytes in the stack and on 32 bit then accumulate them at the end for once. This saves two memory writes and two memory barriers per packet. The incoming packet rate was increased by 4.7% on the Openblocks AX3 thanks to this. Cc: Thomas Petazzoni Cc: Gregory CLEMENT Reviewed-by: Eric Dumazet Tested-by: Arnaud Ebalard Signed-off-by: Willy Tarreau Signed-off-by: David S. Miller --- Reading git-diff-tree failed