]> git.baikalelectronics.ru Git - kernel.git/commit
net: socionext: Use descriptor info instead of MMIO reads on Rx
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 10 Aug 2018 06:12:38 +0000 (09:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:11:36 +0000 (12:11 -0700)
commit0b0510b76d55fa2237854659fd2f03f6145f9e72
tree7be4a38062a08e091631a1ad2ec9d2e962bf3b9b
parentc5909454c8e2fc527acddb8728052c4d448db38d
net: socionext: Use descriptor info instead of MMIO reads on Rx

MMIO reads for remaining packets in queue occur (at least)twice per
invocation of netsec_process_rx(). We can use the packet descriptor to
identify if it's owned by the hardware and break out, avoiding the more
expensive MMIO read operations. This has a ~2% increase on the pps of the
Rx path when tested with 64byte packets

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c