]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'sfc-filter-locking'
authorDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2018 17:33:21 +0000 (13:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2018 17:33:21 +0000 (13:33 -0400)
commit419ca3eb56011fdb75f19622db3d85530fa6ceac
treea5e601f614c88f93b9b7919153cdbd70d66ab8c5
parentce200a444044b1b57830a769c53cb05064e7a6a1
parent60572182dfdbf6e0231e13fe24b4e6546e6af976
Merge branch 'sfc-filter-locking'

Edward Cree says:

====================
sfc: rework locking around filter management

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

Signed-off-by: David S. Miller <davem@davemloft.net>