Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for integrated kernel driver #58

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

velomatt
Copy link
Contributor

@velomatt velomatt commented Jun 3, 2024

If an env. var "INTEGRATED_DRIVER" is set to true (or similar) then modify the behavior of dss_host.py:

  1. Never unload nvme or nvme-core drivers
  2. Use modprobe instead of insmod for nvme-fabrics, nvme-tcp, and nvme-rdma
  3. Do not modprobe nvme unnecessarilly (in remove function)

Additionally, I implemented a fix where we are indiscriminately attempting to process all nvme subsystems.
Now we are only processing RDMA subsystems.

@velomatt velomatt requested a review from a team as a code owner June 3, 2024 21:38
If an env. var "INTEGRATED_DRIVER" is set to `true` (or similar) then
modify the behavior of dss_host.py:

1. Never unload nvme or nvme-core drivers
2. Use modprobe instead of insmod for nvme-fabrics, nvme-tcp, and
nvme-rdma
3. Do not modprobe nvme unnecessarilly (in `remove` function)

Additionally, I implemented a fix where we are indiscriminately
attempting to process all nvme subsystems.
Now we are only processing RDMA subsystems.
@velomatt velomatt force-pushed the Add-support-for-integrated-kernel-driver branch from c4bad34 to 2255a4d Compare June 3, 2024 21:46
Copy link
Contributor

@grandsuri grandsuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest looks good.

host/scripts/dss_host.py Show resolved Hide resolved
@velomatt
Copy link
Contributor Author

velomatt commented Jun 3, 2024

Build is presently failing due to an issue with Sonar-Scanner. https://community.sonarsource.com/t/403-errors-on-sonar-scanner-cli-since-v6-upgrade/116407/9

I'll re-run the build once there's a fix upstream.

Copy link

sonarcloud bot commented Jun 4, 2024

@nsarras
Copy link
Contributor

nsarras commented Jun 5, 2024

looks good

@velomatt velomatt merged commit 9545ba2 into master Jun 5, 2024
6 checks passed
@velomatt velomatt deleted the Add-support-for-integrated-kernel-driver branch June 5, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants