Skip to content

ionic: Add support for Event Queues

Shannon Nelson netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ionic: change param from lif to ionicdrivers/net/ethernet/pensando/ionic/ionic_lif.c+10 -110 replies
2/9ionic: rename rdma eqs fielddrivers/net/ethernet/pensando/ionic/ionic.h drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h+14 -120 replies
3/9ionic: replace lif list with xarraydrivers/net/ethernet/pensando/ionic/ionic.h drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h+37 -180 replies
4/9ionic: add event queue definitions to hw interfacedrivers/net/ethernet/pensando/ionic/ionic.h drivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_if.h+48 -00 replies
5/9ionic: rename napi irq functionsdrivers/net/ethernet/pensando/ionic/ionic_lif.c+5 -50 replies
6/9ionic: add functions for setup and tear down event queuesdrivers/net/ethernet/pensando/ionic/ionic_debugfs.c drivers/net/ethernet/pensando/ionic/ionic_debugfs.h drivers/net/ethernet/pensando/ionic/ionic_dev.c +3 more+369 -20 replies
7/9ionic: add q ident query for eqdrivers/net/ethernet/pensando/ionic/ionic_dev.c drivers/net/ethernet/pensando/ionic/ionic_dev.h drivers/net/ethernet/pensando/ionic/ionic_if.h+98 -00 replies
8/9ionic: add basic eq supportdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h drivers/net/ethernet/pensando/ionic/ionic_txrx.c +1 more+184 -560 replies
9/9ionic: keep ionic dev on lif init faildrivers/net/ethernet/pensando/ionic/ionic_bus_pci.c drivers/net/ethernet/pensando/ionic/ionic_lif.c+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/9] ionic: Add support for Event Queues

In configurations where we have many CPU cores and want lots of queues in each device, we can easily run out of interrupt resources, and so need to find ways to limit our usage, either by using fewer queues, or by multiplexing the interrupt needs.

This patchset adds a new EventQueue feature that can be used for multiplexing the interrupts if we find that we can't get enough from the system to support our configuration. We can create a small number of EQs that use interrupts, and have the TxRx queue pairs subscribe to event messages that come through the EQs, selecting an EQ with (TxIndex % numEqs).

The interrupt messages normally generated by packet events become events in the EQ, and the EQ handler will schedule napi sessions for the queues subscribed to the particular event.

The use of EQs is driven by the firmware configuration - if it shows support for ethernet event queues (eq_count in the device identity), the driver will try to use them instead of regular interrupts per TxRx queuepair. If for some reason the EQ setup fails, the driver falls back to using regular TxRx interrupts.

The first 3 patches are prep work, the next 4 build up the Event Queue support, the 8th links in and uses the new EQs, and the final patch adds a bit of debugging assistance if things ever go very wrong in probe.

Shannon Nelson (9):
ionic: change param from lif to ionic
ionic: rename rdma eqs field
ionic: replace lif list with xarray
ionic: add event queue definitions to hw interface
ionic: rename napi irq functions
ionic: add functions for setup and tear down event queues
ionic: add q ident query for eq
ionic: add basic eq support
ionic: keep ionic dev on lif init fail

 drivers/net/ethernet/pensando/ionic/ionic.h   |  20 +-
 .../ethernet/pensando/ionic/ionic_bus_pci.c   |   8 +
 .../ethernet/pensando/ionic/ionic_debugfs.c   |  34 ++
 .../ethernet/pensando/ionic/ionic_debugfs.h   |   2 +
 .../net/ethernet/pensando/ionic/ionic_dev.c   | 357 ++++++++++++++++++
 .../net/ethernet/pensando/ionic/ionic_dev.h   |  29 ++
 .../net/ethernet/pensando/ionic/ionic_if.h    |  86 +++++
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 265 ++++++++-----
 .../net/ethernet/pensando/ionic/ionic_lif.h   |   7 +-
 .../net/ethernet/pensando/ionic/ionic_txrx.c  |  63 +++-
 .../net/ethernet/pensando/ionic/ionic_txrx.h  |   1 +
 11 files changed, 772 insertions(+), 100 deletions(-)
Signature · 1 line
2.17.1