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

NVMe-TCP TLS encryption #147

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift click to select a range
78b7506
nvme/038: use nvme_trtype instead of hardcoding
hreinecke Sep 26, 2024
5b35c28
nvme: make trtype argument to _create_nvmet_port() optional
hreinecke Sep 27, 2024
77fdd21
nvme: sanitize transport parameter in _create_nvmet_port()
hreinecke Sep 27, 2024
7a1f281
nvme: return error from _find_nvme_ns()
hreinecke Oct 1, 2024
75c68a0
nvme: simplify _get_nvmet_ports()
hreinecke Sep 29, 2024
c5c1348
nvme: check for controller device in _nvme_connect_subsys()
hreinecke Oct 8, 2024
1bfeee1
nvme: pass in port parameter to _nvme_connect_subsys()
hreinecke Sep 27, 2024
1994b24
common/nvme, nvme/{rc,054}: remove "local -n" from _get_nvmet_ports()
kawasaki Oct 8, 2024
dd65b11
nvme: delete all namespaces in _remove_nvmet_subsystem()
hreinecke Oct 4, 2024
46669ad
nvme: support only long options for _create_nvmet_ns()
hreinecke Oct 4, 2024
a2162e7
nvme: support only long options for _create_nvmet_subsystem()
hreinecke Oct 9, 2024
88e67d0
nvme/rc: Implement --blkdev none for _nvmet_target_setup()
hreinecke Oct 4, 2024
7d0069f
nvme: move _nvmet_target_setup() to common/nvme
hreinecke Oct 9, 2024
4cef26a
nvme/016: do not create namespace when setting up the target
hreinecke Oct 4, 2024
48c8518
nvme/017: do not create namespace when setting up the target
hreinecke Oct 4, 2024
89c5bf6
nvme/052: do not create namespace when setting up the target
hreinecke Oct 4, 2024
8aa02ae
nvme/003: open-code _nvmet_setup
hreinecke Oct 9, 2024
e9aabff
nvme/031: open-code helper functions
hreinecke Oct 9, 2024
5545881
nvme: rework fcloop
hreinecke Oct 2, 2024
5f889bb
nvme: drop arguments from _create_nvmet_port()
hreinecke Oct 9, 2024
6685f89
nvme: add _setup_nvmet_port_ana()
hreinecke Sep 26, 2024
e0ad900
nvme: add _setup_nvmet_ns_ana()
hreinecke Sep 26, 2024
8d7cd69
nvme/rc: add argument '--ports' to _nvmet_target_setup()
hreinecke Sep 28, 2024
9f949ba
nvme: delete all ana_groups when removing a port
hreinecke Oct 2, 2024
a3f7272
test/nvme: add test for basic ANA support
hreinecke Sep 30, 2024
5ad1068
test/nvme: add test for rapid namespace remapping
hreinecke Oct 2, 2024
9dff04f
nvme: make argument to _find_nvme_dev() optional
hreinecke Oct 11, 2024
aa78c99
nvme: add _require_trtype_is_tcp()
hreinecke Oct 11, 2024
dd018ac
nvme: add '--tls' argument to _nvme_connect_subsys()
hreinecke Oct 11, 2024
c212669
nvme: TLS target support
hreinecke Oct 11, 2024
340eeba
nvme: add testcase for TLS-encrypted connections
hreinecke Oct 11, 2024
b43073e
nvme: handle option '--concat' for _nvme_connect_subsys
hreinecke Oct 11, 2024
4279485
nvme: add test for secure concatenation
hreinecke Oct 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
nvme: make argument to _find_nvme_dev() optional
Most callers use the default subsystem NQN as argument to
_find_nvme_ns(), so make it optional.

Signed-off-by: Hannes Reinecke <[email protected]>
  • Loading branch information
hreinecke committed Oct 11, 2024
commit 9dff04fc9f0910514f4a804f5ccf4cc485271b2a
2 changes: 1 addition & 1 deletion common/nvme
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 730,7 @@ _get_nvmet_port_params() {
}

_find_nvme_dev() {
local subsys=$1
local subsys="${1:-$def_subsysnqn}"
local subsysnqn
local dev
for dev in /sys/class/nvme/nvme*; do
Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/004
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 31,7 @@ test() {
_nvme_connect_subsys

local nvmedev
nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
nvmedev=$(_find_nvme_dev)
_check_uuid "${nvmedev}"

_nvme_disconnect_subsys
Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/005
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 31,7 @@ test() {

_nvme_connect_subsys

nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
nvmedev=$(_find_nvme_dev)

echo 1 > "/sys/class/nvme/${nvmedev}/reset_controller"

Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/008
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 30,7 @@ test() {

_nvme_connect_subsys

nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
nvmedev=$(_find_nvme_dev)
_check_uuid "${nvmedev}"

_nvme_disconnect_subsys
Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/022
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 30,7 @@ test() {

_nvme_connect_subsys

nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
nvmedev=$(_find_nvme_dev)
_check_uuid "${nvmedev}"

if ! nvme reset "/dev/${nvmedev}" >> "$FULL" 2>&1; then
Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/027
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 30,7 @@ test() {

_nvme_connect_subsys

nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
nvmedev=$(_find_nvme_dev)
_check_uuid "${nvmedev}"

if ! nvme ns-rescan "/dev/${nvmedev}" >> "$FULL" 2>&1; then
Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/036
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 35,7 @@ test_device() {
if [[ -z "$nsdev" ]]; then
echo "FAIL: Failed to find passthru target namespace"
else
ctrldev=$(_find_nvme_dev "${def_subsysnqn}")
ctrldev=$(_find_nvme_dev)

if ! nvme reset "/dev/${ctrldev}" >> "$FULL" 2>&1; then
echo "ERROR: reset failed"
Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/040
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 32,7 @@ test() {
_nvmet_target_setup

_nvme_connect_subsys
nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
nvmedev=$(_find_nvme_dev)
ns=$(_find_nvme_ns "${def_subsys_uuid}")

# start fio job
Expand Down
2 changes: 1 addition & 1 deletion tests/nvme/045
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 60,7 @@ test() {

echo "Re-authenticate with original host key"

ctrldev=$(_find_nvme_dev "${def_subsysnqn}")
ctrldev=$(_find_nvme_dev)
if [ -z "$ctrldev" ] ; then
echo "nvme controller not found"
fi
Expand Down