[Intel-wired-lan] [PATCH iwl-next v6 12/15] idpf: add RX splitq napi poll support

Singh, Krishneil K krishneil.k.singh at intel.com
Tue May 30 23:02:53 UTC 2023


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Pavan Kumar Linga
> Sent: Monday, May 22, 2023 5:23 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: willemb at google.com; pabeni at redhat.com; leon at kernel.org;
> mst at redhat.com; simon.horman at corigine.com; Brandeburg, Jesse
> <jesse.brandeburg at intel.com>; stephen at networkplumber.org;
> edumazet at google.com; Nguyen, Anthony L
> <anthony.l.nguyen at intel.com>; netdev at vger.kernel.org; kuba at kernel.org;
> Burra, Phani R <phani.r.burra at intel.com>; decot at google.com;
> davem at davemloft.net; shannon.nelson at amd.com
> Subject: [Intel-wired-lan] [PATCH iwl-next v6 12/15] idpf: add RX splitq napi
> poll support
> 
> From: Alan Brady <alan.brady at intel.com>
> 
> Add support to handle interrupts for the RX completion queue and
> RX buffer queue. When the interrupt fires on RX completion queue,
> process the RX descriptors that are received. Allocate and prepare
> the SKB with the RX packet info, for both data and header buffer.
> 
> IDPF uses software maintained refill queues to manage buffers between
> RX queue producer and the buffer queue consumer. They are required in
> order to maintain a lockless buffer management system and are strictly
> software only constructs. Instead of updating the RX buffer queue tail
> with available buffers right after the clean routine, it posts the
> buffer ids to the refill queues, only to post them to the HW later.
> 
> If the generic receive offload (GRO) is enabled in the capabilities
> and turned on by default or via ethtool, then HW performs the
> packet coalescing if certain criteria are met by the incoming
> packets and updates the RX descriptor. Similar to GRO, if generic
> checksum is enabled, HW computes the checksum and updates the
> respective fields in the descriptor. Add support to update the
> SKB fields with the GRO and the generic checksum received.
> 
> Signed-off-by: Alan Brady <alan.brady at intel.com>
> Co-developed-by: Joshua Hay <joshua.a.hay at intel.com>
> Signed-off-by: Joshua Hay <joshua.a.hay at intel.com>
> Co-developed-by: Madhu Chittim <madhu.chittim at intel.com>
> Signed-off-by: Madhu Chittim <madhu.chittim at intel.com>
> Co-developed-by: Phani Burra <phani.r.burra at intel.com>
> Signed-off-by: Phani Burra <phani.r.burra at intel.com>
> Co-developed-by: Pavan Kumar Linga <pavan.kumar.linga at intel.com>
> Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga at intel.com>
> Reviewed-by: Sridhar Samudrala <sridhar.samudrala at intel.com>
> Reviewed-by: Willem de Bruijn <willemb at google.com>
> ---
>  drivers/net/ethernet/intel/idpf/idpf.h        |   2 +
>  drivers/net/ethernet/intel/idpf/idpf_txrx.c   | 992 +++++++++++++++++-
>  drivers/net/ethernet/intel/idpf/idpf_txrx.h   |  56 +-
>  .../net/ethernet/intel/idpf/idpf_virtchnl.c   |   4 +-
>  4 files changed, 1045 insertions(+), 9 deletions(-)
> 
Tested-by: Krishneil Singh  <krishneil.k.singh at intel.com>


More information about the Intel-wired-lan mailing list