summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorYunsheng Lin2019-05-06 04:48:50 +0200
committerDavid S. Miller2019-05-07 19:37:14 +0200
commit389ca14615e5ea4f9a56d765ac1e0da22d8105c3 (patch)
tree8ff37e077d62268317c86a1c95f634f3fd37a000 /drivers/oprofile
parentnet: hns3: optimize the barrier using when cleaning TX BD (diff)
downloadkernel-qcow2-linux-389ca14615e5ea4f9a56d765ac1e0da22d8105c3.tar.gz
kernel-qcow2-linux-389ca14615e5ea4f9a56d765ac1e0da22d8105c3.tar.xz
kernel-qcow2-linux-389ca14615e5ea4f9a56d765ac1e0da22d8105c3.zip
net: hns3: unify the page reusing for page size 4K and 64K
When page size is 64K, RX buffer is currently not reused when the page_offset is moved to last buffer. This patch adds checking to decide whether the buffer page can be reused when last_offset is moved beyond last offset. If the driver is the only user of page when page_offset is moved to beyond last offset, then buffer can be reused and page_offset is set to zero. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/oprofile')
0 files changed, 0 insertions, 0 deletions