+2
−0
Loading
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9FIHP ---------------------------------------------------------------------- A hardware reset is required to stop traffic injection, currently this is done by obtaining a notification from the kernel space driver and stop ringing the doorbell in user space. This notification is implemented through a shared memory. If concurrency scenarios are involved, the shared memory mechanism needs barriers to ensure reliability, but barriers will severely affect performance. This patch uses a new scheme to solve this problem. Before resetting, the kernel-mode driver will zap all the shared memory between user-mode driver and kernel-mode driver, and point these VMAs to a zero page, so that user-mode can no longer access any hardware address during reset, thus achieving flow stop. Fixes: 9f651379 ("RDMA/hns: Kernel notify usr space to stop ring db") Signed-off-by:Chengchang Tang <tangchengchang@huawei.com> Signed-off-by:
Juan Zhou <zhoujuan51@h-partners.com>