> -----Original Message----- > From: Alan Brady <[email protected]> > Sent: Thursday, February 22, 2024 11:05 AM > To: [email protected] > Cc: [email protected]; Brady, Alan <[email protected]>; Lobakin, > Aleksander <[email protected]>; Kitszel, Przemyslaw > <[email protected]>; Bagnucki, Igor <[email protected]> > Subject: [PATCH v6 04/11 iwl-next] idpf: refactor queue related virtchnl > messages > > This reworks queue specific virtchnl messages to use the added > transaction API. It is fairly mechanical and generally makes the > functions using it more simple. Functions using transaction API no > longer need to take the vc_buf_lock since it's not using it anymore. > After filling out an idpf_vc_xn_params struct, idpf_vc_xn_exec takes > care of the send and recv handling. > > This also converts those functions where appropriate to use > auto-variables instead of manually calling kfree. This greatly > simplifies the memory alloc paths and makes them less prone memory > leaks. > > Tested-by: Alexander Lobakin <[email protected]> > Reviewed-by: Przemek Kitszel <[email protected]> > Reviewed-by: Igor Bagnucki <[email protected]> > Signed-off-by: Alan Brady <[email protected]> > --- > drivers/net/ethernet/intel/idpf/idpf.h | 2 +- > .../net/ethernet/intel/idpf/idpf_virtchnl.c | 393 ++++++------------ > 2 files changed, 136 insertions(+), 259 deletions(-) > > diff --git a/drivers/net/ethernet/intel/idpf/idpf.h > b/drivers/net/ethernet/intel/idpf/idpf.h > index c3b08d4593b0..ed5474c1565a 100644 > --- a/drivers/net/ethernet/intel/idpf/idpf.h > +++ b/drivers/net/ethernet/intel/idpf/idpf.h
Tested-by: Krishneil Singh <[email protected]>
