[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MW4PR11MB5911D575BA443AEFC2962840BA4B9@MW4PR11MB5911.namprd11.prod.outlook.com>
Date: Tue, 30 May 2023 22:57:21 +0000
From: "Singh, Krishneil K" <krishneil.k.singh@...el.com>
To: "Linga, Pavan Kumar" <pavan.kumar.linga@...el.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "willemb@...gle.com" <willemb@...gle.com>, "pabeni@...hat.com"
<pabeni@...hat.com>, "leon@...nel.org" <leon@...nel.org>, "mst@...hat.com"
<mst@...hat.com>, "simon.horman@...igine.com" <simon.horman@...igine.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"stephen@...workplumber.org" <stephen@...workplumber.org>,
"edumazet@...gle.com" <edumazet@...gle.com>, "Nguyen, Anthony L"
<anthony.l.nguyen@...el.com>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, "kuba@...nel.org" <kuba@...nel.org>, "Burra, Phani
R" <phani.r.burra@...el.com>, "decot@...gle.com" <decot@...gle.com>,
"davem@...emloft.net" <davem@...emloft.net>, "shannon.nelson@....com"
<shannon.nelson@....com>
Subject: RE: [Intel-wired-lan] [PATCH iwl-next v6 08/15] idpf: configure
resources for RX queues
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@...osl.org> On Behalf Of
> Pavan Kumar Linga
> Sent: Monday, May 22, 2023 5:23 PM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: willemb@...gle.com; pabeni@...hat.com; leon@...nel.org;
> mst@...hat.com; simon.horman@...igine.com; Brandeburg, Jesse
> <jesse.brandeburg@...el.com>; stephen@...workplumber.org;
> edumazet@...gle.com; Nguyen, Anthony L
> <anthony.l.nguyen@...el.com>; netdev@...r.kernel.org; kuba@...nel.org;
> Burra, Phani R <phani.r.burra@...el.com>; decot@...gle.com;
> davem@...emloft.net; shannon.nelson@....com
> Subject: [Intel-wired-lan] [PATCH iwl-next v6 08/15] idpf: configure resources
> for RX queues
>
> From: Alan Brady <alan.brady@...el.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@...el.com>
> Co-developed-by: Alice Michael <alice.michael@...el.com>
> Signed-off-by: Alice Michael <alice.michael@...el.com>
> Co-developed-by: Joshua Hay <joshua.a.hay@...el.com>
> Signed-off-by: Joshua Hay <joshua.a.hay@...el.com>
> Co-developed-by: Madhu Chittim <madhu.chittim@...el.com>
> Signed-off-by: Madhu Chittim <madhu.chittim@...el.com>
> Co-developed-by: Phani Burra <phani.r.burra@...el.com>
> Signed-off-by: Phani Burra <phani.r.burra@...el.com>
> Co-developed-by: Pavan Kumar Linga <pavan.kumar.linga@...el.com>
> Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga@...el.com>
> Reviewed-by: Sridhar Samudrala <sridhar.samudrala@...el.com>
> Reviewed-by: Willem de Bruijn <willemb@...gle.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@...el.com>
Powered by blists - more mailing lists