OSDN Git Service

Merge branch 'nfp-improve-signal-handing-on-FW-waits-and-flower-control-message-Jakub...
authorDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2018 01:57:28 +0000 (21:57 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2018 01:57:28 +0000 (21:57 -0400)
====================
nfp: improve signal handing on FW waits and flower control message processing

The first part of this set aims to improve handling of interrupted
waits.  Patch 1 makes waiting for management FW responses
uninterruptible while patch 2 adds a message when signal arrives
while waiting for an NFP mutex.  We can't interrupt execution of
FW commands so uninterruptible sleep seems reasonable there.
Exiting a wait for a mutex should be clean and have no side affects
so we are allowing to abort it.  Note that both waits have rather
large timeouts (tens of seconds).

Patches 3 and 4 improve flower offload operation under heavy load.
Currently there is no cap on the number of queued FW notifications.
Some of the notifications have to be processed from a workqueue
which may lead to very large number of messages getting queued
if workqueue never gets a chance to run.  Pieter puts a limit
on number of queued messages, tries to drop some messages we ignore
without queuing and process more important messages first.
====================

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


Trivial merge