aboutsummaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorMateusz Palczewski <[email protected]>2022-01-27 15:16:29 +0100
committerTony Nguyen <[email protected]>2022-03-01 08:50:11 -0800
commitbae569d01a1f4929ce28093be80bbbbacbf1b127 (patch)
tree132ec601a66f32f5fe9010f9a51aefff60bea4bf /scripts/clang-tools/gen_compile_commands.py
parentc3fec56e12678c3ad68084048a73818a7968d6b8 (diff)
iavf: stop leaking iavf_status as "errno" values
Several functions in the iAVF core files take status values of the enum iavf_status and convert them into integer values. This leads to confusion as functions return both Linux errno values and status codes intermixed. Reporting status codes as if they were "errno" values can lead to confusion when reviewing error logs. Additionally, it can lead to unexpected behavior if a return value is not interpreted properly. Fix this by introducing iavf_status_to_errno, a switch that explicitly converts from the status codes into an appropriate error value. Also introduce a virtchnl_status_to_errno function for the one case where we were returning both virtchnl status codes and iavf_status codes in the same function. Signed-off-by: Jacob Keller <[email protected]> Signed-off-by: Mateusz Palczewski <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions