With recent changes libreduce should provide correct buffers if the driver doesn't support SGL in/out. This patch verifies that we don't use SGLs when they are not supported. Since even a single buffer can be split on 2MB page boundary, it is not enough just to check iovs count. Added asserts that the first elements of mbufs are not null to avoid scan build errors Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Change-Id: I620e43bf5b1abd25cab412fe08346a6d767c9be9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11973 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> |
||
---|---|---|
.. | ||
compress_ut.c | ||
Makefile |