All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/9] ionic: Add support for Event Queues
@ 2020-02-16 23:11 Shannon Nelson
  2020-02-16 23:11 ` [PATCH net-next 1/9] ionic: change param from lif to ionic Shannon Nelson
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Shannon Nelson @ 2020-02-16 23:11 UTC (permalink / raw)
  To: davem, netdev; +Cc: Shannon Nelson

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.

Signed-off-by: Shannon Nelson <snelson@pensando.io>

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(-)

-- 
2.17.1


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

end of thread, other threads:[~2020-02-18 20:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-16 23:11 [PATCH net-next 0/9] ionic: Add support for Event Queues Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 1/9] ionic: change param from lif to ionic Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 2/9] ionic: rename rdma eqs field Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 3/9] ionic: replace lif list with xarray Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 4/9] ionic: add event queue definitions to hw interface Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 5/9] ionic: rename napi irq functions Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 6/9] ionic: add functions for setup and tear down event queues Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 7/9] ionic: add q ident query for eq Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 8/9] ionic: add basic eq support Shannon Nelson
2020-02-16 23:11 ` [PATCH net-next 9/9] ionic: keep ionic dev on lif init fail Shannon Nelson
2020-02-17  4:11 ` [PATCH net-next 0/9] ionic: Add support for Event Queues David Miller
2020-02-17  6:55   ` Shannon Nelson
2020-02-17 22:03     ` David Miller
2020-02-18 16:16       ` Shannon Nelson
2020-02-18 20:33         ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.