Skip to content

Refactor error handling at enable/disable wq/dev

ramesh.thomas at intel.com accel-config 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7accel-config: Fix wrong return values in accfg_device_get_cmd_statusaccfg/lib/libaccfg.c+7 -100 replies
2/7accel-config: Refactor accfg_device_get_cmd_status_straccfg/lib/libaccfg.c+2 -100 replies
3/7accel-config: Add 0 = "Successful completion" cmd status arrayaccfg/lib/libaccfg.c+1 -00 replies
4/7accel-config: Refactor handling printing of device cmd statusaccfg/enable.c+12 -100 replies
5/7accel-config: Print device command status only on errorsaccfg/enable.c+5 -30 replies
6/7accel-config: Remove redundant check of wq stateaccfg/enable.c+3 -120 replies
7/7accel-config: Fix and refactor status return and printingaccfg/enable.c+24 -640 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Accel-config] [PATCH v1 0/7] Refactor error handling at enable/disable wq/dev

From: Ramesh Thomas <ramesh.thomas(a)intel.com>

Functions enabliing/disabling workqueues and devices had several issues with status return and printing of error messages. Fix the return value issues and refactor code to make error handling simpler.

Ramesh Thomas (7):
accel-config: Fix wrong return values in accfg_device_get_cmd_status
accel-config: Refactor accfg_device_get_cmd_status_str
accel-config: Add 0 = "Successful completion" cmd status array
accel-config: Refactor handling printing of device cmd status
accel-config: Print device command status only on errors
accel-config: Remove redundant check of wq state
accel-config: Fix and refactor status return and printing

 accfg/enable.c       | 125 ++++++++++++++-----------------------------
 accfg/lib/libaccfg.c |  30 ++++-------
 2 files changed, 50 insertions(+), 105 deletions(-)
Signature · 1 line
2.26.2