[Intel-wired-lan] [PATCH iwl-next v6 04/15] idpf: add core init and interrupt request

Singh, Krishneil K krishneil.k.singh at intel.com
Tue May 30 22:44:25 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: mst at redhat.com; simon.horman at corigine.com;
> edumazet at google.com; Nguyen, Anthony L
> <anthony.l.nguyen at intel.com>; decot at google.com; leon at kernel.org;
> Brandeburg, Jesse <jesse.brandeburg at intel.com>; kuba at kernel.org;
> pabeni at redhat.com; willemb at google.com; Bhatnagar, Shailendra
> <shailendra.bhatnagar at intel.com>; netdev at vger.kernel.org;
> stephen at networkplumber.org; Burra, Phani R <phani.r.burra at intel.com>;
> davem at davemloft.net; shannon.nelson at amd.com
> Subject: [Intel-wired-lan] [PATCH iwl-next v6 04/15] idpf: add core init and
> interrupt request
> 
> 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 at intel.com>
> Signed-off-by: Alan Brady <alan.brady at intel.com>
> Co-developed-by: Emil Tantilov <emil.s.tantilov at intel.com>
> Signed-off-by: Emil Tantilov <emil.s.tantilov 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: Shailendra Bhatnagar <shailendra.bhatnagar at intel.com>
> Signed-off-by: Shailendra Bhatnagar <shailendra.bhatnagar 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        | 138 ++-
>  drivers/net/ethernet/intel/idpf/idpf_dev.c    |  17 +
>  .../ethernet/intel/idpf/idpf_lan_pf_regs.h    |  43 +
>  .../ethernet/intel/idpf/idpf_lan_vf_regs.h    |  38 +
>  drivers/net/ethernet/intel/idpf/idpf_lib.c    | 347 +++++++-
>  drivers/net/ethernet/intel/idpf/idpf_main.c   |  16 +
>  drivers/net/ethernet/intel/idpf/idpf_txrx.h   |  26 +
>  drivers/net/ethernet/intel/idpf/idpf_vf_dev.c |  22 +-
>  .../net/ethernet/intel/idpf/idpf_virtchnl.c   | 807 ++++++++++++++++++
>  9 files changed, 1451 insertions(+), 3 deletions(-)
>  create mode 100644 drivers/net/ethernet/intel/idpf/idpf_txrx.h
> 

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


More information about the Intel-wired-lan mailing list