> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Mateusz Polchlopek > Sent: Tuesday, October 22, 2024 1:41 PM > To: [email protected] > Cc: [email protected]; Polchlopek, Mateusz > <[email protected]>; Drewek, Wojciech > <[email protected]>; Rahul Rameshbabu > <[email protected]>; Simon Horman <[email protected]> > Subject: [Intel-wired-lan] [PATCH iwl-next v12 12/14] iavf: Implement checking > DD desc field > > Rx timestamping introduced in PF driver caused the need of refactoring the VF > driver mechanism to check packet fields. > > The function to check errors in descriptor has been removed and from now only > previously set struct fields are being checked. The field DD (descriptor done) > needs to be checked at the very beginning, before extracting other fields. > > Reviewed-by: Wojciech Drewek <[email protected]> > Reviewed-by: Rahul Rameshbabu <[email protected]> > Reviewed-by: Simon Horman <[email protected]> > Signed-off-by: Mateusz Polchlopek <[email protected]> > --- > drivers/net/ethernet/intel/iavf/iavf_txrx.c | 54 ++++++++++++++++----- > drivers/net/ethernet/intel/iavf/iavf_txrx.h | 16 ------ > drivers/net/ethernet/intel/iavf/iavf_type.h | 2 + > 3 files changed, 43 insertions(+), 29 deletions(-) > > diff --git a/drivers/net/ethernet/intel/iavf/iavf_txrx.c > b/drivers/net/ethernet/intel/iavf/iavf_txrx.c > index 89b71509e521..283997b8a777 100644 > --- a/drivers/net/ethernet/intel/iavf/iavf_txrx.c > +++ b/drivers/net/ethernet/intel/iavf/iavf_txrx.c > @@ -9,6 +9,25 @@
Tested-by: Rafal Romanowski <[email protected]>
