linux_dsm_epyc7002/drivers/net/ethernet/netronome/nfp
Jakub Kicinski 3d780b926a 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 <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-16 22:34:40 -04:00
..
Makefile net: add driver for Netronome NFP4000/NFP6000 NIC VFs 2015-12-03 14:17:51 -05:00
nfp_net_common.c nfp: add async reconfiguration mechanism 2016-04-16 22:34:40 -04:00
nfp_net_ctrl.h nfp: remove unused suspicious mask defines 2016-04-16 22:34:40 -04:00
nfp_net_debugfs.c nfp: remove unnecessary static 2016-04-16 22:34:39 -04:00
nfp_net_ethtool.c nfp: allow ring size reconfiguration at runtime 2016-04-08 15:26:06 -04:00
nfp_net.h nfp: add async reconfiguration mechanism 2016-04-16 22:34:40 -04:00
nfp_netvf_main.c net: add driver for Netronome NFP4000/NFP6000 NIC VFs 2015-12-03 14:17:51 -05:00