nfp: process control messages in workqueue in flower app
authorSimon Horman <simon.horman@netronome.com>
Wed, 16 Aug 2017 07:37:43 +0000 (09:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 18:36:44 +0000 (11:36 -0700)
commitb985f870a5f08da0a2d6b45a3ea33f5558cf7e4e
tree264f0b8703d3fbeee82349b6b404efd4f9f32ab5
parentcf9d01405925e3f8144c99d7bf7b184449794066
nfp: process control messages in workqueue in flower app

Processing of control messages is not time-critical and future processing
of some messages will require taking the RTNL which is not possible
in a BH handler. It seems simplest to move all control message processing
to a workqueue.

Signed-off-by: Simon Horman <simon.horman@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
drivers/net/ethernet/netronome/nfp/flower/cmsg.h
drivers/net/ethernet/netronome/nfp/flower/main.c
drivers/net/ethernet/netronome/nfp/flower/main.h