aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-05-06 10:48:50 +0800
committerDavid S. Miller <davem@davemloft.net>2019-05-07 10:37:14 -0700
commit389ca14615e5ea4f9a56d765ac1e0da22d8105c3 (patch)
tree8ff37e077d62268317c86a1c95f634f3fd37a000 /drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
parentnet: hns3: optimize the barrier using when cleaning TX BD (diff)
downloadlinux-dev-389ca14615e5ea4f9a56d765ac1e0da22d8105c3.tar.xz
linux-dev-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 '')
0 files changed, 0 insertions, 0 deletions