+8
−0
+12
−4
+12
−2
+49
−8
+3
−3
Loading
spdk_bdev_get/set_opts() is careful to check its size argument, so that it can add options in a backwards-compatible manner. However, spdk_iobuf_get/set_opts() and spdk_accel_get/set_opts() both have slightly different interfaces to the bdev variant, and are less careful. Make all three variants operate in the same manner instead. For spdk_iobuf_set_opts(), make all validation consistently return an error instead of trying to adjust automatically. Signed-off-by:John Levon <john.levon@nutanix.com> Change-Id: I4077a5f1df7039992a556544acdcb1ef379887ae Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22093 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>