summaryrefslogtreecommitdiff
path: root/net/mpls
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2024-10-25 17:29:31 +0800
committerPaolo Abeni <pabeni@redhat.com>2024-10-31 11:15:42 +0100
commitf2c14899caba76da93ff3fff46b4d5a8f43ce07e (patch)
tree3235efa99e5f8f629d406294488f4d5a7e510a2f /net/mpls
parente6ab19443b36a45ebfb392775cb17d6a78dd07ea (diff)
downloadlwn-f2c14899caba76da93ff3fff46b4d5a8f43ce07e.tar.gz
lwn-f2c14899caba76da93ff3fff46b4d5a8f43ce07e.zip
net: hns3: add sync command to sync io-pgtable
To avoid errors in pgtable prefectch, add a sync command to sync io-pagtable. This is a supplement for the previous patch. We want all the tx packet can be handled with tx bounce buffer path. But it depends on the remain space of the spare buffer, checked by the hns3_can_use_tx_bounce(). In most cases, maybe 99.99%, it returns true. But once it return false by no available space, the packet will be handled with the former path, which will map/unmap the skb buffer. Then the driver will face the smmu prefetch risk again. So add a sync command in this case to avoid smmu prefectch, just protects corner scenes. Fixes: 295ba232a8c3 ("net: hns3: add device version to replace pci revision") Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Peiyang Wang <wangpeiyang1@huawei.com> Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/mpls')
0 files changed, 0 insertions, 0 deletions