Skip to content

Add ability to have multiple host ports - #253

Open
Mr-Bossman wants to merge 3 commits into
linux-blktests:masterfrom
Mr-Bossman:dev/jesse/nvme_features
Open

Add ability to have multiple host ports#253
Mr-Bossman wants to merge 3 commits into
linux-blktests:masterfrom
Mr-Bossman:dev/jesse/nvme_features

Conversation

@Mr-Bossman

@Mr-Bossman Mr-Bossman commented Jul 27, 2026

Copy link
Copy Markdown

Add various features namely the ability to have multiple host ports

This will be used in my upcoming PR for testing nvme marginal support.
All the commits are independent of one-anther, if anyone thinks its a good idea
to split them into multiple PRs I can .

makefile: Add rules to generate ctags

If cscope and ctags are installed create the databases needed
to browse these shell scripts with cscope/ctags.

nvme: Add ability to have multiple host ports

Currently, the nvme tests only support a single host port.
This patch adds the ability to have multiple host ports, which will
more accuratly reflect a real-world multipath scenario.

nvme: Add _nvmet_target_add_ports

Add `_nvmet_target_add_ports` to allow for more ports to be added after
`_nvmet_target_setup` has been called.

Comment thread common/nvme

@kawasaki kawasaki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hi @Mr-Bossman thank you for the PR. Overall, four out of the three commits look good. I'm not so sure about the first commit, "nvme: Delete lports in _nvmet_target_cleanup". Its commit message says that _nvmet_target_cleanup() is called when Ctrl-C is typed, but my understanding is that _cleanup_nvmet() is called when Ctrl-C is typed.

Other three commits looks valid. Please find some minor comments I made for them, and see if they make sense for you.

I have not yet done trail test runs. Will do later. Thanks!

Comment thread common/nvme Outdated
Comment thread common/nvme Outdated
Comment thread common/nvme Outdated
Comment thread common/nvme Outdated
Comment thread Makefile Outdated
Comment thread common/nvme Outdated
Comment thread common/nvme Outdated
@Mr-Bossman
Mr-Bossman force-pushed the dev/jesse/nvme_features branch 4 times, most recently from 19f8144 to 6ecd543 Compare July 30, 2026 15:24
Mr-Bossman and others added 3 commits July 31, 2026 10:30
Add `_nvmet_target_add_ports` to allow for more ports to be added after
`_nvmet_target_setup` has been called.

Signed-off-by: Jesse Taube <jtaubepe@redhat.com>
Currently, the nvme tests only support a single host port.
This patch adds the ability to have multiple host ports, which will
more accuratly reflect a real-world multipath scenario.

Signed-off-by: Jesse Taube <jtaubepe@redhat.com>
If cscope and ctags are installed create the databases needed
to browse these shell scripts with cscope/ctags.

Signed-off-by: John Meneghini <jmeneghi@redhat.com>
@Mr-Bossman
Mr-Bossman force-pushed the dev/jesse/nvme_features branch from 6ecd543 to 2acedec Compare July 31, 2026 14:30
@Mr-Bossman

Copy link
Copy Markdown
Author

@kawasaki I dropped the "nvme: Delete lports in _nvmet_target_cleanup" commit

@Mr-Bossman
Mr-Bossman requested review from igaw and kawasaki July 31, 2026 18:16
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.

4 participants