summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/thunder/nic.h
diff options
context:
space:
mode:
authorSunil Goutham <sgoutham@cavium.com>2016-03-14 12:06:14 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-14 17:33:36 +0100
commit5c2e26f6f674ee93719769d024cc72fad3ba9134 (patch)
treeca340fa435873c3f545cd68087689716d7b690d3 /drivers/net/ethernet/cavium/thunder/nic.h
parenttipc: make sure IPv6 header fits in skb headroom (diff)
downloadlinux-5c2e26f6f674ee93719769d024cc72fad3ba9134.tar.xz
linux-5c2e26f6f674ee93719769d024cc72fad3ba9134.zip
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>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/nic.h')
-rw-r--r--drivers/net/ethernet/cavium/thunder/nic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nic.h b/drivers/net/ethernet/cavium/thunder/nic.h
index 092f097a5943..872b22d831ee 100644
--- a/drivers/net/ethernet/cavium/thunder/nic.h
+++ b/drivers/net/ethernet/cavium/thunder/nic.h
@@ -294,6 +294,7 @@ struct nicvf {
u32 speed;
struct page *rb_page;
u32 rb_page_offset;
+ u16 rb_pageref;
bool rb_alloc_fail;
bool rb_work_scheduled;
struct delayed_work rbdr_work;