public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Simon Horman <simon.horman@corigine•com>
To: Pavan Kumar Linga <pavan.kumar.linga@intel•com>
Cc: intel-wired-lan@lists•osuosl.org, netdev@vger•kernel.org,
	shiraz.saleem@intel•com, emil.s.tantilov@intel•com,
	willemb@google•com, decot@google•com, joshua.a.hay@intel•com,
	sridhar.samudrala@intel•com, Alan Brady <alan.brady@intel•com>,
	Madhu Chittim <madhu.chittim@intel•com>,
	Phani Burra <phani.r.burra@intel•com>,
	Shailendra Bhatnagar <shailendra.bhatnagar@intel•com>
Subject: Re: [Intel-wired-lan] [PATCH net-next 04/15] idpf: add core init and interrupt request
Date: Fri, 31 Mar 2023 17:39:41 +0200	[thread overview]
Message-ID: <ZCb+vUw4a0bRfQFt@corigine.com> (raw)
In-Reply-To: <20230329140404.1647925-5-pavan.kumar.linga@intel.com>

On Wed, Mar 29, 2023 at 07:03:53AM -0700, Pavan Kumar Linga wrote:
> As the mailbox is setup, add the necessary send and receive
> mailbox message framework to support the virtchnl communication
> between the driver and device Control Plane (CP).
> 
> Add the core initialization. To start with, driver confirms the
> virtchnl version with the CP. Once that is done, it requests
> and gets the required capabilities and resources needed such as
> max vectors, queues etc.
> 
> Based on the vector information received in 'VIRTCHNL2_OP_GET_CAPS',
> request the stack to allocate the required vectors. Finally add
> the interrupt handling mechanism for the mailbox queue and enable
> the interrupt.
> 
> Note: Checkpatch issues a warning about IDPF_FOREACH_VPORT_VC_STATE and
> IDPF_GEN_STRING being complex macros and should be enclosed in parentheses
> but it's not the case. They are never used as a statement and instead only
> used to define the enum and array.
> 
> Co-developed-by: Alan Brady <alan.brady@intel•com>
> Signed-off-by: Alan Brady <alan.brady@intel•com>
> Co-developed-by: Emil Tantilov <emil.s.tantilov@intel•com>
> Signed-off-by: Emil Tantilov <emil.s.tantilov@intel•com>
> Co-developed-by: Joshua Hay <joshua.a.hay@intel•com>
> Signed-off-by: Joshua Hay <joshua.a.hay@intel•com>
> Co-developed-by: Madhu Chittim <madhu.chittim@intel•com>
> Signed-off-by: Madhu Chittim <madhu.chittim@intel•com>
> Co-developed-by: Phani Burra <phani.r.burra@intel•com>
> Signed-off-by: Phani Burra <phani.r.burra@intel•com>
> Co-developed-by: Shailendra Bhatnagar <shailendra.bhatnagar@intel•com>
> Signed-off-by: Shailendra Bhatnagar <shailendra.bhatnagar@intel•com>
> Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga@intel•com>
> Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel•com>

More spelling nits from my side.

...

> diff --git a/drivers/net/ethernet/intel/idpf/idpf.h b/drivers/net/ethernet/intel/idpf/idpf.h

...

> +/* Stack to maintain vector indexes used for 'vector distribution' algorithm */
> +struct idpf_vector_lifo {
> +	/* Vector stack maintains all the relative vector indexes at the
> +	 * *adapter* level. This stack is divided into 2 parts, first one is
> +	 * called as 'default pool' and other one is called 'free pool'.
> +	 * Vector distribution algorithm gives priority to default vports in
> +	 * a way that at least IDPF_MIN_Q_VEC vectors are allocated per
> +	 * default vport and the relative vector indexes for those are
> +	 * maintained in default pool. Free pool contains all the unallocated
> +	 * vector indexes which can be allocated on-demand basis.
> +	 * Mailbox vector index is maitained in the default pool of the stack

s/maitained/maintained/

> +	 */

...

> diff --git a/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c b/drivers/net/ethernet/intel/idpf/idpf_virtchnl.c

...

> +/**
> + * idpf_recv_get_caps_msg - Receive virtchnl get capabilities message
> + * @adapter: Driver specific private structure
> + *
> + * Receive virtchnl get capabilities message.  Returns 0 on succes, negative on

s/succes/success/

...

> +/**
> + * idpf_vc_core_deinit - Device deinit routine
> + * @adapter: Driver specific private structue

s/structue/structure/

...

  reply	other threads:[~2023-03-31 15:40 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29 14:03 [Intel-wired-lan] [PATCH net-next 00/15] Introduce IDPF driver Pavan Kumar Linga
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 01/15] virtchnl: add virtchnl version 2 ops Pavan Kumar Linga
2023-03-31 15:25   ` Simon Horman
2023-04-03 22:01   ` Shannon Nelson
2023-04-03 22:20     ` Jakub Kicinski
2023-04-03 22:54       ` Shannon Nelson
2023-04-03 23:30         ` Jakub Kicinski
2023-04-04  7:59         ` Orr, Michael
2023-04-04 16:25           ` Shannon Nelson
2023-04-04 19:41       ` Orr, Michael
2023-04-10 20:27     ` Linga, Pavan Kumar
2023-04-10 22:12       ` Shannon Nelson
2023-04-12 16:58         ` Tantilov, Emil S
2023-04-12 21:36           ` Shannon Nelson
2023-04-13 18:54             ` Tantilov, Emil S
2023-04-13 21:03               ` Shannon Nelson
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 02/15] idpf: add module register and probe functionality Pavan Kumar Linga
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 03/15] idpf: add controlq init and reset checks Pavan Kumar Linga
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 04/15] idpf: add core init and interrupt request Pavan Kumar Linga
2023-03-31 15:39   ` Simon Horman [this message]
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 05/15] idpf: add create vport and netdev configuration Pavan Kumar Linga
2023-03-31 15:46   ` Simon Horman
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 06/15] idpf: continue expanding init task Pavan Kumar Linga
2023-03-31 15:47   ` Simon Horman
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 07/15] idpf: configure resources for TX queues Pavan Kumar Linga
2023-03-31 15:49   ` Simon Horman
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 08/15] idpf: configure resources for RX queues Pavan Kumar Linga
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 09/15] idpf: initialize interrupts and enable vport Pavan Kumar Linga
2023-03-31 15:59   ` Simon Horman
2023-04-04 19:36     ` Linga, Pavan Kumar
2023-04-05 10:07       ` Simon Horman
2023-03-29 14:03 ` [Intel-wired-lan] [PATCH net-next 10/15] idpf: add splitq start_xmit Pavan Kumar Linga
2023-03-29 14:04 ` [Intel-wired-lan] [PATCH net-next 11/15] idpf: add TX splitq napi poll support Pavan Kumar Linga
2023-03-29 14:04 ` [Intel-wired-lan] [PATCH net-next 12/15] idpf: add RX " Pavan Kumar Linga
2023-03-30 16:23   ` Maciej Fijalkowski
2023-04-05  0:51     ` Tantilov, Emil S
2023-03-29 14:04 ` [Intel-wired-lan] [PATCH net-next 13/15] idpf: add singleq start_xmit and napi poll Pavan Kumar Linga
2023-03-29 14:04 ` [Intel-wired-lan] [PATCH net-next 14/15] idpf: add ethtool callbacks Pavan Kumar Linga
2023-03-29 15:33   ` Andrew Lunn
2023-03-30 22:05     ` Linga, Pavan Kumar
2023-03-29 14:04 ` [Intel-wired-lan] [PATCH net-next 15/15] idpf: configure SRIOV and add other ndo_ops Pavan Kumar Linga
2023-03-29 15:41 ` [Intel-wired-lan] [PATCH net-next 00/15] Introduce IDPF driver Paul Menzel
2023-03-30 21:31   ` Linga, Pavan Kumar
2023-03-29 17:31 ` Willem de Bruijn
2023-03-30 12:03 ` Jason Gunthorpe
2023-03-30 17:25   ` Jakub Kicinski
2023-03-30 18:29     ` Jason Gunthorpe
2023-04-03 21:36       ` Samudrala, Sridhar
2023-04-04 16:42         ` Jason Gunthorpe
2023-04-04 19:19           ` Orr, Michael
2023-04-04 23:35             ` Jason Gunthorpe
2023-04-07  4:39         ` Christoph Hellwig
2023-04-07 18:01           ` Shannon Nelson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZCb+vUw4a0bRfQFt@corigine.com \
    --to=simon.horman@corigine$(echo .)com \
    --cc=alan.brady@intel$(echo .)com \
    --cc=decot@google$(echo .)com \
    --cc=emil.s.tantilov@intel$(echo .)com \
    --cc=intel-wired-lan@lists$(echo .)osuosl.org \
    --cc=joshua.a.hay@intel$(echo .)com \
    --cc=madhu.chittim@intel$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=pavan.kumar.linga@intel$(echo .)com \
    --cc=phani.r.burra@intel$(echo .)com \
    --cc=shailendra.bhatnagar@intel$(echo .)com \
    --cc=shiraz.saleem@intel$(echo .)com \
    --cc=sridhar.samudrala@intel$(echo .)com \
    --cc=willemb@google$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox