]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Optimize RBDR descriptor handling
authorSunil Goutham <sgoutham@cavium.com>
Tue, 2 May 2017 13:06:51 +0000 (18:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:41:20 +0000 (15:41 -0400)
commit57f7709d96e943c300263223f3b24ddbb96a50c2
tree247528970eb0abd195b637de07eabdf45034e13f
parent0d587c0607563a8f5d302b028a2407041c52ff17
net: thunderx: Optimize RBDR descriptor handling

Receive buffer's physical address or iova will anyway not
go beyond 49bits, since it is the max supported HW address.
As per perf, updating bitfields i.e buf_addr:42 in RBDR
descriptor entry consumes lots of cpu cycles, hence changed
it to a 64bit field with alignment requirements taken care of.

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