+137
−42
Loading
Add a struct with 4 fn pointers to init, process, continue and finish a task. That allows us to add new opcodes with less effort Signed-off-by:Alexey Marchuk <alexeymar@nvidia.com> Change-Id: I37e85e5d34a1c5989675c1b9df66055f8c641b30 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23131 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Ben Walker <ben@nvidia.com>