diff options
author | Sunil Goutham <sgoutham@cavium.com> | 2016-03-14 12:06:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-14 17:33:36 +0100 |
commit | 5c2e26f6f674ee93719769d024cc72fad3ba9134 (patch) | |
tree | ca340fa435873c3f545cd68087689716d7b690d3 /drivers/net/ethernet/cavium/thunder/nic.h | |
parent | tipc: make sure IPv6 header fits in skb headroom (diff) | |
download | linux-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.h | 1 |
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; |