-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libhns: Support reporting WC as software mode
When HW is being or has been reset, it won't generate cqe anymore, and users can't poll all work completions as expected. This patch allows userspace driver to compose the expected WCs instead of HW in this case. All SQs, RQs and SRQs is linked to a list respectively. When reset state is detected during polling CQ, walk the lists and compose software-WCs with error status IBV_WC_WR_FLUSH_ERR according to the polling number specified by users. Signed-off-by: Chengchang Tang <[email protected]> Signed-off-by: Junxian Huang <[email protected]>
- Loading branch information
Chengchang Tang
authored and
Junxian Huang
committed
Oct 14, 2024
1 parent
80d452f
commit 0092957
Showing
4 changed files
with
293 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.