net: thunderx: Set recevie buffer page usage count in bulk
authorSunil Goutham <sgoutham@cavium.com>
Mon, 14 Mar 2016 11:06:14 +0000 (16:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 16:33:36 +0000 (12:33 -0400)
commit5c2e26f6f674ee93719769d024cc72fad3ba9134
treeca340fa435873c3f545cd68087689716d7b690d3
parent9bd160bfa27fa41927dbbce7ee0ea779700e09ef
net: thunderx: Set recevie buffer page usage count in bulk

Instead of calling get_page() for every receive buffer carved out
of page, set page's usage count at the end, to reduce no of atomic
calls.

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