nfp: serialize access for hardware reconfiguration
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 26 Apr 2016 13:03:01 +0000 (14:03 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 6 May 2016 13:51:22 +0000 (15:51 +0200)
commitceccc5e78b750e5feb5ace315de25474110ebe1d
treee7654ad5b84f9ab769b8ab5599ef3051f5035439
parentaace9d0bcf5883f44f145df621513ec657601ed9
nfp: serialize access for hardware reconfiguration

Some apps calling some functions from different threads at the
same time could lead to reconfig problems. Reconfig mechanism is
based on a hardware queue where incrementing a counter signals the
firmware to do the reconfig. If there is a second increment before the
first one has been processed the firmware will stop and a device
reset is necessary.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c
drivers/net/nfp/nfp_net_pmd.h