]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Adjust nicvf structure to reduce cache misses
authorSunil Goutham <sgoutham@cavium.com>
Mon, 14 Mar 2016 11:06:15 +0000 (16:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 16:33:36 +0000 (12:33 -0400)
commit9e4751393633853d8dee49d7930e8306b6a472db
tree62bc6d4af15358695714f7eefc4e5ee3ea1f52f8
parentc0f78f44c2021a045839105ce5a4ef315ca230f6
net: thunderx: Adjust nicvf structure to reduce cache misses

Adjusted nicvf structure such that all elements used in hot
path like napi, xmit e.t.c fall into same cache line. This reduced
no of cache misses and resulted in ~2% increase in no of packets
handled on a core.

Also modified elements with :1 notation to boolean, to be
consistent with other element definitions.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic.h