public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 00/10][pull request] refactor IDPF resource access
@ 2026-01-22 22:35 Tony Nguyen
  2026-01-22 22:35 ` [PATCH net-next v2 01/10] idpf: introduce local idpf structure to store virtchnl queue chunks Tony Nguyen
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Tony Nguyen @ 2026-01-22 22:35 UTC (permalink / raw)
  To: davem, kuba, pabeni, edumazet, andrew+netdev, netdev
  Cc: Tony Nguyen, joshua.a.hay, madhu.chittim, samuel.salin

Pavan Kumar Linga says:

Queue and vector resources for a given vport, are stored in the
idpf_vport structure. At the time of configuration, these
resources are accessed using vport pointer. Meaning, all the
config path functions are tied to the default queue and vector
resources of the vport.

There are use cases which can make use of config path functions
to configure queue and vector resources that are not tied to any
vport. One such use case is PTP secondary mailbox creation
(it would be in a followup series). To configure queue and interrupt
resources for such cases, we can make use of the existing config
infrastructure by passing the necessary queue and vector resources info.

To achieve this, group the existing queue and vector resources into
default resource group and refactor the code to pass the resource
pointer to the config path functions.

This series also includes patches which generalizes the send virtchnl
message APIs and mailbox API that are necessary for the implementation
of PTP secondary mailbox.
---
v2:
Patch 1:
- Defer assignment of q_info->num_chunks until after allocation; set to
  0 on alloc failure
- Add check for error in error path of idpf_initiate_soft_reset()
- Add missing 'struct' in kdocs
Patch 3:
- Add backpointer reference to dev struct in qvec_rsrc for persistent use
  in free functions
Patch 8:
- Add check for NULL on idpf_vid_to_vport() call

v1: https://lore.kernel.org/netdev/20260115234749.2365504-1-anthony.l.nguyen@intel.com/

The following are changes since commit b00a7b3a612925faa7362f5c61065e3e5f393fff:
  net: atp: drop ancient parallel-port Ethernet driver
and are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 200GbE

Joshua Hay (2):
  idpf: move some iterator declarations inside for loops
  idpf: remove vport pointer from queue sets

Pavan Kumar Linga (8):
  idpf: introduce local idpf structure to store virtchnl queue chunks
  idpf: introduce idpf_q_vec_rsrc struct and move vector resources to it
  idpf: move queue resources to idpf_q_vec_rsrc structure
  idpf: reshuffle idpf_vport struct members to avoid holes
  idpf: add rss_data field to RSS function parameters
  idpf: generalize send virtchnl message API
  idpf: avoid calling get_rx_ptypes for each vport
  idpf: generalize mailbox API

 drivers/net/ethernet/intel/idpf/idpf.h        |  179 ++-
 drivers/net/ethernet/intel/idpf/idpf_dev.c    |   18 +-
 .../net/ethernet/intel/idpf/idpf_ethtool.c    |   93 +-
 drivers/net/ethernet/intel/idpf/idpf_lib.c    |  225 ++--
 drivers/net/ethernet/intel/idpf/idpf_ptp.c    |   17 +-
 drivers/net/ethernet/intel/idpf/idpf_txrx.c   |  716 +++++------
 drivers/net/ethernet/intel/idpf/idpf_txrx.h   |   44 +-
 drivers/net/ethernet/intel/idpf/idpf_vf_dev.c |   21 +-
 .../net/ethernet/intel/idpf/idpf_virtchnl.c   | 1096 +++++++++--------
 .../net/ethernet/intel/idpf/idpf_virtchnl.h   |   88 +-
 drivers/net/ethernet/intel/idpf/xdp.c         |   48 +-
 drivers/net/ethernet/intel/idpf/xdp.h         |    6 +-
 drivers/net/ethernet/intel/idpf/xsk.c         |   12 +-
 13 files changed, 1417 insertions(+), 1146 deletions(-)

-- 
2.47.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-01-25 23:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22 22:35 [PATCH net-next v2 00/10][pull request] refactor IDPF resource access Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 01/10] idpf: introduce local idpf structure to store virtchnl queue chunks Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 02/10] idpf: introduce idpf_q_vec_rsrc struct and move vector resources to it Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 03/10] idpf: move queue resources to idpf_q_vec_rsrc structure Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 04/10] idpf: move some iterator declarations inside for loops Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 05/10] idpf: reshuffle idpf_vport struct members to avoid holes Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 06/10] idpf: add rss_data field to RSS function parameters Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 07/10] idpf: remove vport pointer from queue sets Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 08/10] idpf: generalize send virtchnl message API Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 09/10] idpf: avoid calling get_rx_ptypes for each vport Tony Nguyen
2026-01-22 22:35 ` [PATCH net-next v2 10/10] idpf: generalize mailbox API Tony Nguyen
2026-01-25 23:20 ` [PATCH net-next v2 00/10][pull request] refactor IDPF resource access patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox