nfp: flower: prioritize stats updates
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Sat, 20 Jan 2018 01:54:08 +0000 (17:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jan 2018 23:08:05 +0000 (18:08 -0500)
commit01c15e93a78cfcf45cc32d07aa38bdc84250f569
tree04239fb005d2abc63dfe64e03d78f76ba9da7851
parentd83bb0be127d1068874ba6c0f230cfa6743c64af
nfp: flower: prioritize stats updates

Previously it was possible to interrupt processing stats updates because
they were handled in a work queue. Interrupting the stats updates could
lead to a situation where we backup the control message queue. This patch
moves the stats update processing out of the work queue to be processed as
soon as hardware sends a request.

Reported-by: Louis Peens <louis.peens@netronome.com>
Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/cmsg.c