Skip to content

refactor irq allocation in ice

Michal Swiatkowski intel-wired-lan 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ice: add check for eswitch supportdrivers/net/ethernet/intel/ice/ice.h drivers/net/ethernet/intel/ice/ice_eswitch.c drivers/net/ethernet/intel/ice/ice_eswitch.h +1 more+52 -50 replies
2/3ice: change mode only if eswitch is supporteddrivers/net/ethernet/intel/ice/ice_eswitch.c+13 -40 replies
3/3ice: use new alloc irqs APIdrivers/net/ethernet/intel/ice/Makefile drivers/net/ethernet/intel/ice/ice.h drivers/net/ethernet/intel/ice/ice_arfs.c +5 more+243 -2200 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJonathan Toppins
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Intel-wired-lan] [PATCH net-next 0/3] refactor irq allocation in ice

The ice driver uses the old PCI irq reseveration API. Change the ice driver to use the current API.

Implement a fallback mechanism where, if the driver can't reserve the maximum number of interrupts, it will limit the number of queues or disable capabilities.

First two patches add ability to turn on and off eswitch offload. This is needed when driver can't reserve maximum number of interrupts. In this case driver turns off eswitch offload as driver can work without it. Additionally, the eswitch can be supported only if SRIOV is available, so set eswitch capabilities only if SRIOV is supported.

Michal Swiatkowski (3):
ice: add check for eswitch support
ice: change mode only if eswitch is supported
ice: use new alloc irqs API

 drivers/net/ethernet/intel/ice/Makefile      |   3 +-
 drivers/net/ethernet/intel/ice/ice.h         |   4 +-
 drivers/net/ethernet/intel/ice/ice_arfs.c    |   3 +-
 drivers/net/ethernet/intel/ice/ice_eswitch.c |  46 +++-
 drivers/net/ethernet/intel/ice/ice_eswitch.h |  12 +
 drivers/net/ethernet/intel/ice/ice_irq.c     | 213 ++++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_irq.h     |  12 +
 drivers/net/ethernet/intel/ice/ice_lib.c     |   5 +-
 drivers/net/ethernet/intel/ice/ice_main.c    | 220 +------------------
 drivers/net/ethernet/intel/ice/ice_xsk.c     |   3 +-
 10 files changed, 300 insertions(+), 221 deletions(-)
 create mode 100644 drivers/net/ethernet/intel/ice/ice_irq.c
 create mode 100644 drivers/net/ethernet/intel/ice/ice_irq.h
Signature · 1 line
2.31.1