[Intel-wired-lan] [PATCH iwl-next v6 08/15] idpf: configure resources for RX queues

Singh, Krishneil K krishneil.k.singh at intel.com
Tue May 30 22:57:21 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 08/15] idpf: configure resources
> for RX queues
> 
> From: Alan Brady <alan.brady at intel.com>
> 
> Similar to the TX, RX also supports both single and split queue models.
> In single queue model, the same descriptor queue is used by SW to post
> buffer descriptors to HW and by HW to post completed descriptors
> to SW. In split queue model, "RX buffer queues" are used to pass
> descriptor buffers from SW to HW whereas "RX queues" are used to
> post the descriptor completions i.e. descriptors that point to
> completed buffers, from HW to SW. "RX queue group" is a set of
> RX queues grouped together and will be serviced by a "RX buffer queue
> group". IDPF supports 2 buffer queues i.e. large buffer (4KB) queue
> and small buffer (2KB) queue per buffer queue group. HW uses large
> buffers for 'hardware gro' feature and also if the packet size is
> more than 2KB, if not 2KB buffers are used.
> 
> Add all the resources required for the RX queues initialization.
> Allocate memory for the RX queue and RX buffer queue groups. Initialize
> the software maintained refill queues for buffer management algorithm.
> 
> Same like the TX queues, initialize the queue parameters for the RX
> queues and send the config RX queue virtchnl message to the device
> Control Plane.
> 
> Signed-off-by: Alan Brady <alan.brady at intel.com>
> Co-developed-by: Alice Michael <alice.michael at intel.com>
> Signed-off-by: Alice Michael <alice.michael 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/Makefile      |   1 +
>  drivers/net/ethernet/intel/idpf/idpf.h        |  37 +-
>  .../net/ethernet/intel/idpf/idpf_lan_txrx.h   |  54 +-
>  drivers/net/ethernet/intel/idpf/idpf_lib.c    |  35 +-
>  .../ethernet/intel/idpf/idpf_singleq_txrx.c   |  60 ++
>  drivers/net/ethernet/intel/idpf/idpf_txrx.c   | 920 +++++++++++++++++-
>  drivers/net/ethernet/intel/idpf/idpf_txrx.h   | 148 ++-
>  .../net/ethernet/intel/idpf/idpf_virtchnl.c   | 495 +++++++++-
>  8 files changed, 1735 insertions(+), 15 deletions(-)
>  create mode 100644 drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
> 

Tested-by: Krishneil Singh  <krishneil.k.singh at intel.com>


More information about the Intel-wired-lan mailing list