]> git.baikalelectronics.ru Git - kernel.git/commit
mvpp2: prefetch frame header
authorMatteo Croce <mcroce@redhat.com>
Thu, 24 Oct 2019 17:24:58 +0000 (19:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2019 20:44:26 +0000 (13:44 -0700)
commit7edcc1b558091241db69e9b8c6cba2205f9dc471
tree702fa3ce30da52c3e976efd43f3134777ad80dcd
parenta2d4b5894c8aafb112bfef035ef880d9ae65a0b1
mvpp2: prefetch frame header

When receiving traffic, eth_type_trans() is high up on the perf top list,
because it's the first function which access the packet data.

Move the DMA unmap a bit higher, and put a prefetch just after it, so we
have more time to load the data into the cache.

The packet rate increase is about 14% with a tc drop test: 1620 => 1853 kpps

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c