]> git.ipfire.org Git - thirdparty/dracut.git/commit
95nvmf: add NVMe over TCP support
authorEnzo Matsumiya <ematsumiya@suse.de>
Mon, 3 Aug 2020 14:21:36 +0000 (11:21 -0300)
committerDaniel Molkentin <daniel@molkentin.de>
Tue, 4 Aug 2020 06:22:25 +0000 (08:22 +0200)
commit019610af266bcaef711715266bc0ca4be1044150
tree368c14c9d5a5f722614ed7b391ac2d6f213a5cda
parent63b05a8e6787301dce435bd414a37a8f3ae9cdde
95nvmf: add NVMe over TCP support

Add support to boot from an NVMe over TCP device.

Example of supported command line formats:

nvme.discover=tcp:192.168.1.3::4420
nvme.discover=tcp:192.168.1.3 # will use 4420 as default svcid

- Create is_nvmf() function to handle all fabrics types
- Fix parse_nvmf_discover() to correctly use the default values
- Auxiliary function to validate an IP connection
- Fix inverted result for getargbool when reading "rd.nonvmf" command line parameter

Requires rd.neednet=1
Requires adding/replacing STARTMODE in /etc/sysconfig/network/ifcfg-ethX to "nfsroot"
to avoid shutdown hanging in initiator

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
modules.d/95nvmf/module-setup.sh
modules.d/95nvmf/parse-nvmf-boot-connections.sh