netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 net-next 0/6] net: napi: add CPU affinity to napi->config
@ 2024-12-10  0:26 Ahmed Zaki
  2024-12-10  0:26 ` [PATCH v1 net-next 1/6] net: napi: add irq_flags to napi struct Ahmed Zaki
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Ahmed Zaki @ 2024-12-10  0:26 UTC (permalink / raw)
  To: netdev
  Cc: intel-wired-lan, andrew+netdev, edumazet, kuba, pabeni, davem,
	michael.chan, tariqt, anthony.l.nguyen, przemyslaw.kitszel,
	Ahmed Zaki

Move the IRQ affinity management to the napi struct. All drivers that are
already using netif_napi_set_irq() are modified to the new API. Except
mlx5 because it is implementing IRQ pools and moving to the new API does
not seem trivial.

Tested on bnxt, ice and idpf.
---
Opens: is cpu_online_mask the best default mask? drivers do this differently 

RFC -> v1:
    - move static inline affinity functions to net/dev/core.c
    - add the new napi->irq_flags (patch 1)
    - add code changes to bnxt, mlx4 and ice.

Ahmed Zaki (6):
  net: napi: add irq_flags to napi struct
  net: napi: add CPU affinity to napi->config
  bnxt: use napi's irq affinity
  mlx4: use napi's irq affinity
  ice: use napi's irq affinity
  idpf: use napi's irq affinity

 drivers/net/ethernet/amazon/ena/ena_netdev.c  |  2 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     | 26 ++---------
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  2 -
 drivers/net/ethernet/broadcom/tg3.c           |  2 +-
 drivers/net/ethernet/google/gve/gve_utils.c   |  2 +-
 drivers/net/ethernet/intel/e1000/e1000_main.c |  2 +-
 drivers/net/ethernet/intel/e1000e/netdev.c    |  2 +-
 drivers/net/ethernet/intel/ice/ice.h          |  3 --
 drivers/net/ethernet/intel/ice/ice_base.c     |  7 +--
 drivers/net/ethernet/intel/ice/ice_lib.c      |  9 +---
 drivers/net/ethernet/intel/ice/ice_main.c     | 44 -------------------
 drivers/net/ethernet/intel/idpf/idpf_txrx.c   | 19 +++-----
 drivers/net/ethernet/intel/idpf/idpf_txrx.h   |  6 +--
 drivers/net/ethernet/mellanox/mlx4/en_cq.c    |  8 ++--
 .../net/ethernet/mellanox/mlx4/en_netdev.c    | 33 +-------------
 drivers/net/ethernet/mellanox/mlx4/eq.c       | 22 ----------
 drivers/net/ethernet/mellanox/mlx4/main.c     | 42 ++----------------
 drivers/net/ethernet/mellanox/mlx4/mlx4.h     |  1 -
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h  |  1 -
 .../net/ethernet/mellanox/mlx5/core/en_main.c |  2 +-
 drivers/net/ethernet/meta/fbnic/fbnic_txrx.c  |  3 +-
 include/linux/netdevice.h                     | 11 ++++-
 net/core/dev.c                                | 33 +++++++++++++-
 23 files changed, 73 insertions(+), 209 deletions(-)

-- 
2.47.0


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

end of thread, other threads:[~2024-12-11 16:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10  0:26 [PATCH v1 net-next 0/6] net: napi: add CPU affinity to napi->config Ahmed Zaki
2024-12-10  0:26 ` [PATCH v1 net-next 1/6] net: napi: add irq_flags to napi struct Ahmed Zaki
2024-12-10  0:26 ` [PATCH v1 net-next 2/6] net: napi: add CPU affinity to napi->config Ahmed Zaki
2024-12-10  1:29   ` Joe Damato
2024-12-11  4:21     ` Jakub Kicinski
2024-12-11 16:33     ` Ahmed Zaki
2024-12-10  0:26 ` [PATCH v1 net-next 3/6] bnxt: use napi's irq affinity Ahmed Zaki
2024-12-10  0:26 ` [PATCH v1 net-next 4/6] mlx4: " Ahmed Zaki
2024-12-10  0:26 ` [PATCH v1 net-next 5/6] ice: " Ahmed Zaki
2024-12-10  0:26 ` [PATCH v1 net-next 6/6] idpf: " Ahmed Zaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).