summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul luse <paul.e.luse@intel.com>2022-09-23 08:58:23 -0700
committerTomasz Zawadzki <tomasz.zawadzki@intel.com>2022-09-23 17:55:12 +0000
commitf48377cea194aa5a36edd758cbeeed8d294c1182 (patch)
treede90ceee2ce7cf379556c3c99ea3366d898e3863
parenta33ae74ce4f77b4f84a243c932419424008a7dce (diff)
lib/idxd: update decompression flags
Per spec to assure correct operation of IAA decompression. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I745c5ecc09d220017a8da42b52f4ff7caa5e748c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14660 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
-rw-r--r--include/spdk/idxd_spec.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/spdk/idxd_spec.h b/include/spdk/idxd_spec.h
index ca5c0ee4d..22d702dd9 100644
--- a/include/spdk/idxd_spec.h
+++ b/include/spdk/idxd_spec.h
@@ -43,7 +43,13 @@ extern "C" {
#define IAA_COMP_APPEND_EOB (1 << 2)
#define IAA_COMP_FLAGS (IAA_COMP_FLUSH_OUTPUT | IAA_COMP_APPEND_EOB)
#define IAA_DECOMP_ENABLE (1 << 0)
-#define IAA_DECOMP_FLAGS (IAA_DECOMP_ENABLE)
+#define IAA_DECOMP_FLUSH_OUTPUT (1 << 1)
+#define IAA_DECOMP_CHECK_FOR_EOB (1 << 2)
+#define IAA_DECOMP_STOP_ON_EOB (1 << 3)
+#define IAA_DECOMP_FLAGS (IAA_DECOMP_ENABLE | \
+ IAA_DECOMP_FLUSH_OUTPUT | \
+ IAA_DECOMP_CHECK_FOR_EOB | \
+ IAA_DECOMP_STOP_ON_EOB)
/*
* IDXD is a family of devices, DSA and IAA.