]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Support effects-log for fabrics ctrl
authorDaniel Wagner <dwagner@suse.de>
Fri, 3 Feb 2023 10:16:11 +0000 (11:16 +0100)
committerDaniel Wagner <dwagner@suse.de>
Fri, 3 Feb 2023 10:17:38 +0000 (11:17 +0100)
commit5d0f73e7a192dae77b7312c79d522a0205156f19
treedda18e8603a2d380827e359ae8ac756f58d10a89
parent3a34f1029c74ce875b22b2391f0a727d881289ed
nvme: Support effects-log for fabrics ctrl

nvme-cli v1.16 supported effects-log for fabric devices only, nvme-cli
2.x supported only memory based transports (aka PCI). Obviously, we
should support effects-log independent of the transport type.

Do this by first trying to map the PCI registers and read the CAP
property if this fails fall back using the get-properties approach.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme.c