build: install python modules using setup.pyAdd Makefile to install Python spdk modules, since python modulepath depend on distribution, add `pydir` variable to allow specifycustom path.Signed-
build: install python modules using setup.pyAdd Makefile to install Python spdk modules, since python modulepath depend on distribution, add `pydir` variable to allow specifycustom path.Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>Change-Id: I2a2ba50142d2804eb56a98fe092098e7f3a53fdcReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16950Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>Community-CI: Mellanox Build Bot
show more ...
scripts: add sma-goapi generator scriptChange-Id: I3765fd1dd934478de4be3dd25898b8e49cd0dc32Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spd
scripts: add sma-goapi generator scriptChange-Id: I3765fd1dd934478de4be3dd25898b8e49cd0dc32Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17338Reviewed-by: Michal Berger <michal.berger@intel.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
sma: updated tweak modes namesAccording to some suggestions updated tweak mode namesto make them more self-commentingSigned-off-by: Michal Rozegnal <michal.rozegnal@intel.com>Change-Id: Icde75e
sma: updated tweak modes namesAccording to some suggestions updated tweak mode namesto make them more self-commentingSigned-off-by: Michal Rozegnal <michal.rozegnal@intel.com>Change-Id: Icde75e997ddddde2a7b711c6fba8a7f0928867dcReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16504Reviewed-by: Jim Harris <james.r.harris@intel.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
sma: added tweak mode in sma cryptoAES-XTS requires providing tweak. By definition tweak (128bits)represents logical position of the data being encrypted or decrypted,typically for nvme it is LBA
sma: added tweak mode in sma cryptoAES-XTS requires providing tweak. By definition tweak (128bits)represents logical position of the data being encrypted or decrypted,typically for nvme it is LBA.Various implementations of AES-XTS can treat that requirmentin different way, because AES-XTS specification doesn't definehow exactly tweak look like and how exactly LBA is transformedinto tweak For example: - Tweak[127:0] = {1’b0, ~LBA[62:0], LBA[63:0]} - Tweak[127:0] = {LBA[127:0] + 1} - Tweak[127:0] = {LBA[63:0] + 1, 64'b0}So there's a need of specifying mode of tweakSigned-off-by: Michal Rozegnal <michal.rozegnal@intel.com>Change-Id: I92edc71f5f4dfeb0d08a34b73424675321e4740eReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16058Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>
sma: forbid deleting devices with attached volumesIt makes it possible for stateless clients to send CreateDevice /DeleteDevice each time a volume is attached / detached. Deleting adevice with a
sma: forbid deleting devices with attached volumesIt makes it possible for stateless clients to send CreateDevice /DeleteDevice each time a volume is attached / detached. Deleting adevice with attached volumes results in FAILED_PRECONDITION error, whicha client can simply ignore. The device will be deleted during the finalDeleteDevice call, once all volumes are detached.We limit this behavior to device types that support AttachVolume /DetachVolume methods, otherwise it would be impossible to delete suchdevices.Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>Change-Id: I244b2b09455ec1430970c70f3fbb739cc9069754Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15670Reviewed-by: Jing Yan <jing1.yan@intel.com>Reviewed-by: Filip Szufnarowski <filip.szufnarowski@intel.com>Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
update Intel copyright noticesper Intel policy to include file commit date using git cmdbelow. The policy does not apply to non-Intel (C) notices.git log --follow -C90% --format=%ad --date defa
update Intel copyright noticesper Intel policy to include file commit date using git cmdbelow. The policy does not apply to non-Intel (C) notices.git log --follow -C90% --format=%ad --date default <file> | tail -1and then pull just the 4 digit year from the result.Intel copyrights were not added to files where Intel either hadno contribution ot the contribution lacked substance (ie licenseheader updates, formatting changes, etc). Contribution date used"--follow -C95%" to get the most accurate date.Note that several files in this patch didn't end the license/(c)block with a blank comment line so these were added as the vastmajority of files do have this last blank line. Simply there forconsistency.Signed-off-by: paul luse <paul.e.luse@intel.com>Change-Id: Id5b7ce4f658fe87132f14139ead58d6e285c04d4Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15192Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Reviewed-by: Ben Walker <benjamin.walker@intel.com>Community-CI: Mellanox Build Bot
build: move protobuf files to a top-level directoryUp until now, the protobuf files were all located under`python/spdk/sma/proto`. This was fine, as they were only used in SMAand we only generat
build: move protobuf files to a top-level directoryUp until now, the protobuf files were all located under`python/spdk/sma/proto`. This was fine, as they were only used in SMAand we only generated python code. However, now, we would also like toto output code for other (e.g. go) languages too, so it no longer makesense to keep them under `python`.Only the protobuf files will be stored under `proto`. The autogeneratedpython code will remain under `python`, while the go code will be put inthe `go` directory.While here, simplified the Makefile by removing a function generatingrules based on a directory, because we keep all protobuf files in thesame location.Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>Change-Id: I4dcb7b33cd6f2930732f04dee62e35571b09315bReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15016Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>Reviewed-by: Jim Harris <james.r.harris@intel.com>Community-CI: Mellanox Build Bot