Separate common codes from DSA source code file
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dave Jiang
Reviewed-byQuoted 3 lines · Li Zhang
For sharing codes between DSA and IAA test code, move all reused code into common files, merge structs, rename symbols for universal meaning.
For the series
Quoted 46 lines
Changelog:
v2:
- Change the prefixactst_toacctest_
- For avoiding using macro to conditionally compile DSA and IAA source code, merge DSA and IAA structs.
v3:
- Addcompl_sizein structaccfg_deviceand structacctest_context, modify accel config and DSA code for usingcompl_sizeto allocate and dump completion record.
v4:
- Splitcompl_sizerelate patch into 3 patches,
The 1st: Add completion record size setup foraccfg_device. The 2nd: Export API to retrieve completion record size for the device. The 3rd: Usecompl_sizein DSA test code.Li Zhang (10):
accel-config/test: DSA functions are renamed universal name accel-config/test: Macros are renamed universal name
accel-config: Add completion record size setup foraccfg_device
accel-config: Export API to retrieve completion record size for the
device
accel-config/test: Usecompl_sizein DSA test code accel-config/test: Modify structs for reused by DSA and IAA accel-config/test: Modify name of structs for universal meaning accel-config/test: Create new files for placing reused code accel-config/test: Renameprep.ctodsa_prep.caccel-config/test: Move common code into common filesaccfg/idxd.h | 104 ++-- accfg/lib/libaccel-config.sym | 1 + accfg/lib/libaccfg.c | 23 + accfg/lib/private.h | 1 + accfg/libaccel_config.h | 6 + test/Makefile.am | 2 +- test/accel_test.c | 515 ++++++++++++++++++++ test/accel_test.h | 245 ++++++++++ test/dsa.c | 878 ++++++++-------------------------- test/dsa.h | 301 ++---------- test/{prep.c => dsa_prep.c} | 305 ++++++------ test/dsa_test.c | 187 ++++---- 12 files changed, 1335 insertions(+), 1233 deletions(-)create mode 100644
test/accel_test.c
create mode 100644test/accel_test.h
renametest/{prep.c=>dsa_prep.c} (68%)