* [Intel-wired-lan] [PATCH net-next v2 0/2] iavf: Fix return values in driver
@ 2022-01-26 14:59 Mateusz Palczewski
0 siblings, 0 replies; only message in thread
From: Mateusz Palczewski @ 2022-01-26 14:59 UTC (permalink / raw)
To: intel-wired-lan
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(-)
--
2.27.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-26 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-26 14:59 [Intel-wired-lan] [PATCH net-next v2 0/2] iavf: Fix return values in driver Mateusz Palczewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox