diff options
| author | Jakub Kicinski <[email protected]> | 2016-04-16 10:25:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-04-17 02:34:40 +0000 |
| commit | 3d780b926a12dd798417446d733d457f1be1cc73 (patch) | |
| tree | 6065a2d9bfe45518f6f8ce4e4425fc2460a70b22 /net/dsa/dsa.c | |
| parent | nfp: remove buggy RX buffer length validation (diff) | |
| download | kernel-3d780b926a12dd798417446d733d457f1be1cc73.tar.gz kernel-3d780b926a12dd798417446d733d457f1be1cc73.zip | |
nfp: add async reconfiguration mechanism
Some callers of nfp_net_reconfig() are in atomic context so
we used to busy wait for commands to complete. In worst case
scenario that means locking up a core for up to 5 seconds
when a command times out. Lets add a timer-based mechanism
of asynchronously checking whether reconfiguration completed
successfully for atomic callers to use. Non-atomic callers
can now just sleep.
The approach taken is quite simple because (1) synchronous
reconfigurations always happen under RTNL (or before device
is registered); (2) we can coalesce pending reconfigs.
There is no need for request queues, timer which eventually
takes a look at reconfiguration result to report errors is
good enough.
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions
