netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] sfc: rework locking around filter management
@ 2018-03-27 16:40 Edward Cree
  2018-03-27 16:41 ` [PATCH net-next 1/6] sfc: replace asynchronous filter operations Edward Cree
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Edward Cree @ 2018-03-27 16:40 UTC (permalink / raw)
  To: linux-net-drivers, David Miller; +Cc: netdev

The use of a spinlock to protect filter state combined with the need for a
 sleeping operation (MCDI) to apply that state to the NIC (on EF10) led to
 unfixable race conditions, around the handling of filter restoration after
 an MC reboot.
So, this patch series removes the requirement to be able to modify the SW
 filter table from atomic context, by using a workqueue to request
 asynchronous filter operations (which are needed for ARFS).  Then, the
 filter table locks are changed to mutexes, replacing the dance of spinlocks
 and 'busy' flags.  Also, a mutex is added to protect the RSS context state,
 since otherwise a similar race is possible around restoring that after an
 MC reboot.  While we're at it, fix a couple of other related bugs.

Edward Cree (6):
  sfc: replace asynchronous filter operations
  sfc: give ef10 its own rwsem in the filter table instead of
    filter_lock
  sfc: use a semaphore to lock farch filters too
  sfc: return a better error if filter insertion collides with MC reboot
  sfc: protect list of RSS contexts under a mutex
  sfc: fix flow type handling for RSS filters

 drivers/net/ethernet/sfc/ef10.c       | 545 ++++++++++++----------------------
 drivers/net/ethernet/sfc/efx.c        |  30 +-
 drivers/net/ethernet/sfc/efx.h        |  11 +-
 drivers/net/ethernet/sfc/ethtool.c    |  77 +++--
 drivers/net/ethernet/sfc/farch.c      |  80 +++--
 drivers/net/ethernet/sfc/net_driver.h |  16 +-
 drivers/net/ethernet/sfc/nic.h        |   5 +-
 drivers/net/ethernet/sfc/rx.c         | 119 +++++---
 drivers/net/ethernet/sfc/siena.c      |   1 -
 9 files changed, 400 insertions(+), 484 deletions(-)

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

end of thread, other threads:[~2018-03-27 17:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-27 16:40 [PATCH net-next 0/6] sfc: rework locking around filter management Edward Cree
2018-03-27 16:41 ` [PATCH net-next 1/6] sfc: replace asynchronous filter operations Edward Cree
2018-03-27 16:42 ` [PATCH net-next 2/6] sfc: give ef10 its own rwsem in the filter table instead of filter_lock Edward Cree
2018-03-27 16:42 ` [PATCH net-next 3/6] sfc: use a semaphore to lock farch filters too Edward Cree
2018-03-27 16:44 ` [PATCH net-next 4/6] sfc: return a better error if filter insertion collides with MC reboot Edward Cree
2018-03-27 16:44 ` [PATCH net-next 5/6] sfc: protect list of RSS contexts under a mutex Edward Cree
2018-03-27 16:44 ` [PATCH net-next 6/6] sfc: fix flow type handling for RSS filters Edward Cree
2018-03-27 17:34 ` [PATCH net-next 0/6] sfc: rework locking around filter management David Miller

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