[Intel-wired-lan] [next PATCH S5 iavf 11/11] iavf: allow null RX descriptors

Bowers, AndrewX andrewx.bowers at intel.com
Fri May 17 22:29:06 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Tuesday, May 14, 2019 10:37 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S5 iavf 11/11] iavf: allow null RX
> descriptors
> 
> From: Mitch Williams <mitch.a.williams at intel.com>
> 
> In some circumstances, the hardware can hand us a null receive descriptor,
> with no data attached but otherwise valid. Unfortunately, the driver was ill-
> equipped to handle such an event, and would stop processing packets at that
> point.
> 
> To fix this, use the Descriptor Done bit instead of the size to determine
> whether or not a descriptor is ready to be processed. Add some checks to
> allow for unused buffers.
> 
> Signed-off-by: Mitch Williams <mitch.a.williams at intel.com>
> ---
>  drivers/net/ethernet/intel/iavf/iavf_txrx.c | 21 ++++++++++++++++++---
>  1 file changed, 18 insertions(+), 3 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list