linux/drivers/net/ethernet/intel/fm10k
Jacob Keller a7a7783ada fm10k: correctly handle LPORT_MAP error
Currently, any error responses from the switch manager after an
LPORT_MAP request are silently ignored. At most the mailbox message will
be reported as an error. This can result in unexpected behavior when the
switch manager has configured a port with zero bandwidth. Add support
for reading the fm10k_swapi_error structure from LPORT_MAP responses.

If the message contains the necessary TLV and has a non-zero error code,
report link down, clear the dglort_map, and delay the next
get_host_state call by a reasonable delay. Also log an error message
indicating that the LPORT_MAP request failed.

The delay ensures preventing an interrupt storm on the switch manager,
and reduces the number of mailbox messages we send in this scenario
drastically.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-04-20 23:06:22 -07:00
..
fm10k.h fm10k: correctly handle LPORT_MAP error 2016-04-20 23:06:22 -07:00
fm10k_common.c fm10k: Resolve various spelling errors and checkpatch warnings 2015-03-03 01:07:23 -08:00
fm10k_common.h
fm10k_dcbnl.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_debugfs.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_ethtool.c fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00
fm10k_iov.c fm10k: fix a minor typo in some comments 2016-04-05 12:49:38 -07:00
fm10k_main.c fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00
fm10k_mbx.c fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_mbx.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_netdev.c fm10k: Fix multicast mode sync issues 2016-04-20 23:06:22 -07:00
fm10k_pci.c fm10k: correctly handle LPORT_MAP error 2016-04-20 23:06:22 -07:00
fm10k_pf.c fm10k: correctly handle LPORT_MAP error 2016-04-20 23:06:22 -07:00
fm10k_pf.h fm10k: correctly handle LPORT_MAP error 2016-04-20 23:06:22 -07:00
fm10k_tlv.c fm10k: cleanup remaining right-bit-shifted 1 2016-04-05 12:44:30 -07:00
fm10k_tlv.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_type.h fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00
fm10k_vf.c fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00
fm10k_vf.h fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00
Makefile fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00