]> asedeno.scripts.mit.edu Git - linux.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)
commit5e848e4c5d77438e126c97702ec3bea477f550a9
tree247528970eb0abd195b637de07eabdf45034e13f
parent5836b4429777bf57ca8fc02b154263aa54d97508
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