summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorwilly tarreau <w@1wt.eu>2014-01-16 08:20:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-07 14:30:27 -0700
commit5831364f63388662b37b92b2ff6c21a63e82d60d (patch)
tree5b4491933a83e1305ab886bf70c6fa3afb84f0e8 /lib/mpi/mpi-internal.h
parentf62ec7353efa042524f769d0ada4cd18a9348433 (diff)
net: mvneta: increase the 64-bit rx/tx stats out of the hot path
commit dc4277dd41a80fd5f29a90412ea04bc3ba54fbf1 upstream. 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 <thomas.petazzoni@free-electrons.com> Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Tested-by: Arnaud Ebalard <arno@natisbad.org> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions