All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shannon Nelson <snelson@pensando.io>
To: davem@davemloft.net, netdev@vger.kernel.org
Cc: Shannon Nelson <snelson@pensando.io>
Subject: [PATCH net-next 0/9] ionic: Add support for Event Queues
Date: Sun, 16 Feb 2020 15:11:49 -0800	[thread overview]
Message-ID: <20200216231158.5678-1-snelson@pensando.io> (raw)

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


             reply	other threads:[~2020-02-16 23:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-16 23:11 Shannon Nelson [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200216231158.5678-1-snelson@pensando.io \
    --to=snelson@pensando.io \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.