diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2021-06-18 20:09:45 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-18 12:26:17 -0700 |
commit | 961045004b774aae7a244fa0435f8a6a2495c234 (patch) | |
tree | de389328d3a40af609737b41b93ca0c647c30e5c /net/unix/af_unix.c | |
parent | cb5a82d2b9aaca66ed74c424c9d79f0a5bfdbac4 (diff) |
net: hns3: fix reuse conflict of the rx page
In the current rx page reuse handling process, the rx page buffer may
have conflict between driver and stack in high-pressure scenario.
To fix this problem, we need to check whether the page is only owned
by driver at the begin and at the end of a page to make sure there is
no reuse conflict between driver and stack when desc_cb->page_offset
is rollbacked to zero or increased.
Fixes: fa7711b888f2 ("net: hns3: optimize the rx page reuse handling process")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions