Skip to contentSkip to conversation

iavf: Fix return values in driver

PATCH Superseded Mateusz Palczewski 1 participant 1 message Jan 26, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover iavf: Fix return values in driver

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.Fix this by introducing iavf_status_to_errno, a switch that explicitly converts from the status codes into an appropriate error value.

---
v2: Submit this with additional patch introducing iavf_status_to_errno function
---
Mateusz Palczewski (2):
iavf-linux: stop leaking iavf_status as "errno" values
iavf: Fix incorrect use of assigning iavf_status to int

 drivers/net/ethernet/intel/iavf/iavf.h        |   5 +-
 drivers/net/ethernet/intel/iavf/iavf_main.c   | 160 +++++++++++++---
 .../net/ethernet/intel/iavf/iavf_virtchnl.c   | 178 ++++++++----------
 3 files changed, 218 insertions(+), 125 deletions(-)
Signature · 1 line
2.27.0