| 43c35d80 | 01-Nov-2024 |
Konrad Sztyber <konrad.sztyber@intel.com> |
util: multi-level fd_group nesting
This patch adds the ability to nest multiple fd_groups into one another. This builds a tree with fds from all fd_groups being registered at root fd_group's epfd. F
util: multi-level fd_group nesting
This patch adds the ability to nest multiple fd_groups into one another. This builds a tree with fds from all fd_groups being registered at root fd_group's epfd. For instance, in the following configuration:
fgrp0 | fgrp1----+----fgrp2 | fgrp3
fds from all fd_groups will be registered to epfd of fgrp0. After unnesting fgrp1, fgrp1 and fgrp3 fds will be removed from frgp0's epfd and added to fgrp1 epfd.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I4f586c21fe3db1739bf2010578b20606c53e5e84 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25463 Reviewed-by: Ankit Kumar <ankit.kumar@samsung.com> Reviewed-by: Ben Walker <ben@nvidia.com> Community-CI: Mellanox Build Bot Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@nvidia.com>
show more ...
|
| 92fb2251 | 25-Jun-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
dif: dif_generate/verify_copy() supports NVMe PRACT = 1 and MD size > PI size
In the NVMe spec, if PRACT is 1 and metadata size is larger than PI size, PI is just overwritten for write and PI is jus
dif: dif_generate/verify_copy() supports NVMe PRACT = 1 and MD size > PI size
In the NVMe spec, if PRACT is 1 and metadata size is larger than PI size, PI is just overwritten for write and PI is just verified for read. spdk_dif_generate_copy() and spdk_dif_verify_copy() simulate this behavior.
Update unit test cases for verification.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I0e26a0c2675af416d9d181e3cb4ecb084939c6a4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23688 Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Jim Harris <jim.harris@nvidia.com> Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| c9f2ea22 | 30-Sep-2024 |
Ankit Kumar <ankit.kumar@samsung.com> |
util: fix total fds to wait for
Change num_fds type from signed to unsigned int.
The epoll file descriptor for a fd group waits for interrupt event on the fds from its interrupt sources list as wel
util: fix total fds to wait for
Change num_fds type from signed to unsigned int.
The epoll file descriptor for a fd group waits for interrupt event on the fds from its interrupt sources list as well as from all its children fd group interrupt sources list. Update add, remove, nest and unnest APIs to track the correct number of fds registered in a fd group. Add a check to verify that interrupt sources list is empty before destroying the fd group.
Change-Id: Ib06de08e1083579540f9d0d0ee5fb8db23caad11 Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25077 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
| 1239ea17 | 11-Oct-2024 |
Ankit Kumar <ankit.kumar@samsung.com> |
test/unit: add missing fd_group unit tests
Change-Id: I4b8d84ec0777848907e3be45a4771bbb20f7521b Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk
test/unit: add missing fd_group unit tests
Change-Id: I4b8d84ec0777848907e3be45a4771bbb20f7521b Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25214 Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Ben Walker <ben@nvidia.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
show more ...
|
| 75a12cbf | 10-Oct-2024 |
Slawomir Ptak <slawomir.ptak@intel.com> |
test: Comparison operator fixes
Change-Id: I1296b19b590c2c6cbb75b9362e441cd6219d7a9f Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2
test: Comparison operator fixes
Change-Id: I1296b19b590c2c6cbb75b9362e441cd6219d7a9f Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25198 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
show more ...
|
| 4b88d742 | 24-Jun-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
dif: Do copy data + insert/strip metadata if DIF is disabled
Previously, spdk_dif_generate/verify_copy() did nothing and returned 0 if DIF was disabled.
However, this was wrong.
spdk_dif_generate_
dif: Do copy data + insert/strip metadata if DIF is disabled
Previously, spdk_dif_generate/verify_copy() did nothing and returned 0 if DIF was disabled.
However, this was wrong.
spdk_dif_generate_copy() should copy data and insert metadata field. spdk_dif_verify_copy() should copy data and strip metadata field.
Add such change and verify it by adding unit test cases.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I8408e360376a607864bb7f0a187abb73bb7b6e0d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23684 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| 2de3092a | 23-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
dif: Remove alignment requirement from spdk_dif_verify_copy()
As mentioned in the last patch in the patch series, spdk_dif_verify_copy() required each iovec of bounce buffer to be multiple of block
dif: Remove alignment requirement from spdk_dif_verify_copy()
As mentioned in the last patch in the patch series, spdk_dif_verify_copy() required each iovec of bounce buffer to be multiple of block size length. This was too strong.
The last patch removed the limitation for spdk_dif_generate_copy(). This patch removes the limitation for spdk_dif_verify_copy().
Add unit test cases for verification.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ib32e9f4b3ca27e4ed7d9c95626aec562b9384198 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23683 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
| f7d49034 | 17-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
dif: Fix metadata config check of dif_ctx_init() and add unit test cases
For 32b Guard PI format and 64b Guard PI format, data block size should be equal or greater than 4KiB. However, the check was
dif: Fix metadata config check of dif_ctx_init() and add unit test cases
For 32b Guard PI format and 64b Guard PI format, data block size should be equal or greater than 4KiB. However, the check was done only for separate metadata. This was wrong. Move the check to the common part to be available both for interleaved metadata and separate metadata.
Unit test was not enough for such checks. Add more cases.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ibb3b0c4bf3c56ffc70a6e16eacbe8ca390e36ebb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24204 Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| baa0c332 | 16-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
dif: Add and use a helper function to check DIF type
This is a preparation to move DIF configuration check from bdev modules to the DIF library.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.c
dif: Add and use a helper function to check DIF type
This is a preparation to move DIF configuration check from bdev modules to the DIF library.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I1d9fe6c496c57714fcd112f60e1fa03e9148e405 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24203 Reviewed-by: Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
| 46854e4c | 16-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
dif: Factor out DIF PI format check into a helper function
This improves readability slightly.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I744e9e0f2df43789d019f416d1ff9e6d66
dif: Factor out DIF PI format check into a helper function
This improves readability slightly.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I744e9e0f2df43789d019f416d1ff9e6d66620346 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24202 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
| e8671c89 | 15-Jul-2024 |
Jim Harris <jim.harris@samsung.com> |
util: add spdk_net_get_interface_name
This function provides the name of the network interface for the given IP address.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: Ib6d2c08c98d4b
util: add spdk_net_get_interface_name
This function provides the name of the network interface for the given IP address.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: Ib6d2c08c98d4b4b21c52b0b42a9703125c834f99 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24177 Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| 2276e22d | 05-Jul-2024 |
Jim Harris <jim.harris@samsung.com> |
util: add spdk_read_sysfs_attribute_uint32
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I87b1794e2758618c65f860609eaa686f70fc92d0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/s
util: add spdk_read_sysfs_attribute_uint32
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I87b1794e2758618c65f860609eaa686f70fc92d0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24075 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng_liu@hotmail.com>
show more ...
|
| 4897a330 | 04-Jul-2024 |
Jim Harris <jim.harris@samsung.com> |
util: add spdk_read_sysfs_attribute
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I18cc7fcb7ad42fd276b2ed1dcb414dc9955cb9d5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2
util: add spdk_read_sysfs_attribute
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I18cc7fcb7ad42fd276b2ed1dcb414dc9955cb9d5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24074 Reviewed-by: Changpeng Liu <changpeng_liu@hotmail.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
| cdeecfb8 | 13-Jun-2024 |
Jim Harris <jim.harris@samsung.com> |
util: add spdk_cpuset_for_each_cpu
This calls a provided function for every cpu that is set in the provided cpuset.
As part of this patch, implement spdk_cpuset_count using this new API, to reduce
util: add spdk_cpuset_for_each_cpu
This calls a provided function for every cpu that is set in the provided cpuset.
As part of this patch, implement spdk_cpuset_count using this new API, to reduce code duplication.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: I005734ad0fc87a25b507268dc174c3746c16bc0e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23723 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| a44a9620 | 24-May-2024 |
Jim Harris <jim.harris@samsung.com> |
util: allow commas in spdk_cpuset_parse()
Linux sysfs entries that contain cpumasks will use comma delimiters every 8 hex characters for readability purposes. So allow commas in the spdk_cpuset_pars
util: allow commas in spdk_cpuset_parse()
Linux sysfs entries that contain cpumasks will use comma delimiters every 8 hex characters for readability purposes. So allow commas in the spdk_cpuset_parse() input strings so that it can be used directly with such sysfs strings.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Change-Id: Ie8bffa8229a19567f72c77d5cb771763f026d149 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23405 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| d112ea1a | 25-Jan-2024 |
Slawomir Ptak <slawomir.ptak@intel.com> |
lib/util/dif: Reference tag optional check on remap
Add a parameter to skip the reference tag check during the remap operations.
This is needed in cases, when the check and remap operations happen
lib/util/dif: Reference tag optional check on remap
Add a parameter to skip the reference tag check during the remap operations.
This is needed in cases, when the check and remap operations happen in two different places on the I/O path. This is true, for example, for RAID bdev, where there are multiple levels of LBA remapping happening on different layers.
Change-Id: Ic7692ddc9337cde93063038e19395ae51b3e537c Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21569 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
| f4cb9817 | 28-Feb-2023 |
Ben Walker <benjamin.walker@intel.com> |
util/pipe: add pipe empty check
When read catches write, jump back to the beginning. This makes it more likely to re-use a fewer number of cache lines.
Change-Id: I9910911dde7dbeb883e3c405e4a528665
util/pipe: add pipe empty check
When read catches write, jump back to the beginning. This makes it more likely to re-use a fewer number of cache lines.
Change-Id: I9910911dde7dbeb883e3c405e4a528665b1a3bc7 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16991 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
| f029b824 | 15-Jan-2024 |
Jacek Kalwas <jacek.kalwas@intel.com> |
util: add SPDK_IOV_ONE macro
Having that spdk_iov_one fn is marked deprecated. The issue with that function is that it enforce iovcnt type which might not be of type int but u32 or u8 etc. Having th
util: add SPDK_IOV_ONE macro
Having that spdk_iov_one fn is marked deprecated. The issue with that function is that it enforce iovcnt type which might not be of type int but u32 or u8 etc. Having that compiler would complain when using the function with other types than int.
It is a pre-work for layout optmz of nvmf request (iovcnt change there from int to u8).
Change-Id: Id1534f4d3f60d35c58c26e4f4cf0d605ae11398a Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21433 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
| 247e4e6e | 01-Nov-2023 |
Changpeng Liu <changpeng.liu@intel.com> |
lib/dif: set Reference Tag/Application Ingore Tag
For UNMAP and WRITE ZEROES, we should also set correct values for Application Tag/Reference Tag, when reading contents from the deallocated ranges,
lib/dif: set Reference Tag/Application Ingore Tag
For UNMAP and WRITE ZEROES, we should also set correct values for Application Tag/Reference Tag, when reading contents from the deallocated ranges, we will skip checking the protection information based on DIF type.
Here, we use `SPDK_DIF_APPTAG_IGNORE` and `SPDK_DIF_REFTAG_IGNORE` as the special values when creating DIF context, when the two values are used for Application Tag and initialization Reference Tag, we will fill the protection information fields with above values based on check flags, then when doing verify with above values in protection information fields, the checking will be ignored.
Change-Id: I045fb3863cc6567f961905ce8bf57b90895c0e9c Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20492 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot
show more ...
|
| ea941cae | 28-Jul-2023 |
Konrad Sztyber <konrad.sztyber@intel.com> |
test/unit: use spdk_ut_run_tests()
Replaced direct calls to the CUnit's functions to run the tests with spdk_ut_run_tests(). That way, each test will have the ability to run a specific test case.
test/unit: use spdk_ut_run_tests()
Replaced direct calls to the CUnit's functions to run the tests with spdk_ut_run_tests(). That way, each test will have the ability to run a specific test case.
The blob.c unit test wasn't changed, because it runs all tests multiple times with different parameter combinations, so it cannot be easily converted. In the future, each such combination could be split into a separate test suite, which would make it compatible with spdk_ut_run_tests().
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I4463f808f89844e9bf32b5b31eda197c5d729d1d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19288 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| ae431e31 | 28-Jul-2023 |
Konrad Sztyber <konrad.sztyber@intel.com> |
test/unit: move spdk_cunit.h to include/spdk_internal
It'll make it easier to include this file outside of unit tests.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I171ddb864
test/unit: move spdk_cunit.h to include/spdk_internal
It'll make it easier to include this file outside of unit tests.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I171ddb8649f67b5786f08647560e2907603d0574 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19284 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
| 5256f0ef | 30-May-2023 |
Slawomir Ptak <slawomir.ptak@intel.com> |
lib/util/dif: Added support for CRC-64 guard
Extend the DIF/DIX library with the CRC-64 format of the Protection Information
Change-Id: I762db9aa2e9cfa58cb5b81843c2eff32f60ca264 Signed-off-by: Slaw
lib/util/dif: Added support for CRC-64 guard
Extend the DIF/DIX library with the CRC-64 format of the Protection Information
Change-Id: I762db9aa2e9cfa58cb5b81843c2eff32f60ca264 Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18584 Community-CI: Mellanox Build Bot Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
show more ...
|
| 86d0b37c | 30-May-2023 |
Slawomir Ptak <slawomir.ptak@intel.com> |
lib/util/crc64: Add a CRC-64 util module
Added a CRC-64 util module, an NVMe PI compliant CRC-64 function and unit tests.
Change-Id: I97e4aa4af788efe0bd8bb45b682f89060c26596a Signed-off-by: Slawomi
lib/util/crc64: Add a CRC-64 util module
Added a CRC-64 util module, an NVMe PI compliant CRC-64 function and unit tests.
Change-Id: I97e4aa4af788efe0bd8bb45b682f89060c26596a Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18583 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
show more ...
|
| b648aca5 | 12-Jul-2023 |
Slawomir Ptak <slawomir.ptak@intel.com> |
lib/util/dif: Fix for the App Tag Mask
The DIF/DIX lib, when verifying DIF or DIX memory buffer with the provided values, applied the App Tag Mask only to the memory buffer value. The change is to a
lib/util/dif: Fix for the App Tag Mask
The DIF/DIX lib, when verifying DIF or DIX memory buffer with the provided values, applied the App Tag Mask only to the memory buffer value. The change is to apply the mask to both values and compare only the unmasked bits.
Change-Id: I33ba0bad56f1d9ebdbdf2256c7750e201314351b Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19053 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
| 5681a8a6 | 07-Jun-2023 |
Konrad Sztyber <konrad.sztyber@intel.com> |
dif: remove packed attribute from spdk_dif_ctx_init_ext_opts
Following the recommendation introduced in 1d77eec82, the packed attribute was removed from spdk_dif_ctx_init_ext_opts and the way its si
dif: remove packed attribute from spdk_dif_ctx_init_ext_opts
Following the recommendation introduced in 1d77eec82, the packed attribute was removed from spdk_dif_ctx_init_ext_opts and the way its size is calculated was changed to use SPDK_SIZEOF().
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I8dab3ee5afcd2afe803dacc563bee9b029c7cbf6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18597 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot
show more ...
|