linux/drivers/net/ethernet/intel/ice
Anirudh Venkataramanan 0b28b702e7 ice: Support link events, reset and rebuild
Link events are posted to a PF's admin receive queue (ARQ). This patch
adds the ability to detect and process link events.

This patch also adds the ability to process resets.

The driver can process the following resets:
    1) EMP Reset (EMPR)
    2) Global Reset (GLOBR)
    3) Core Reset (CORER)
    4) Physical Function Reset (PFR)

EMPR is the largest level of reset that the driver can handle. An EMPR
resets the manageability block and also the data path, including PHY and
link for all the PFs. The affected PFs are notified of this event through
a miscellaneous interrupt.

GLOBR is a subset of EMPR. It does everything EMPR does except that it
doesn't reset the manageability block.

CORER is a subset of GLOBR. It does everything GLOBR does but doesn't
reset PHY and link.

PFR is a subset of CORER and affects only the given physical function.
In other words, PFR can be thought of as a CORER for a single PF. Since
only the issuing PF is affected, a PFR doesn't result in the miscellaneous
interrupt being triggered.

All the resets have the following in common:
1) Tx/Rx is halted and all queues are stopped.
2) All the VSIs and filters programmed for the PF are lost and have to be
   reprogrammed.
3) Control queue interfaces are reset and have to be reprogrammed.

In the rebuild flow, control queues are reinitialized, VSIs are reallocated
and filters are restored.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-03-26 12:32:17 -07:00
..
Makefile ice: Add stats and ethtool support 2018-03-26 12:11:19 -07:00
ice.h ice: Support link events, reset and rebuild 2018-03-26 12:32:17 -07:00
ice_adminq_cmd.h ice: Support link events, reset and rebuild 2018-03-26 12:32:17 -07:00
ice_common.c ice: Support link events, reset and rebuild 2018-03-26 12:32:17 -07:00
ice_common.h ice: Support link events, reset and rebuild 2018-03-26 12:32:17 -07:00
ice_controlq.c ice: Initialize PF and setup miscellaneous interrupt 2018-03-26 10:34:49 -07:00
ice_controlq.h ice: Initialize PF and setup miscellaneous interrupt 2018-03-26 10:34:49 -07:00
ice_devids.h
ice_ethtool.c ice: Add stats and ethtool support 2018-03-26 12:11:19 -07:00
ice_hw_autogen.h ice: Support link events, reset and rebuild 2018-03-26 12:32:17 -07:00
ice_lan_tx_rx.h ice: Add support for VLANs and offloads 2018-03-26 11:54:49 -07:00
ice_main.c ice: Support link events, reset and rebuild 2018-03-26 12:32:17 -07:00
ice_nvm.c ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_osdep.h ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_sched.c ice: Update Tx scheduler tree for VSI multi-Tx queue support 2018-03-26 12:21:42 -07:00
ice_sched.h ice: Update Tx scheduler tree for VSI multi-Tx queue support 2018-03-26 12:21:42 -07:00
ice_status.h ice: Configure VSIs for Tx/Rx 2018-03-26 11:18:36 -07:00
ice_switch.c ice: Add support for VLANs and offloads 2018-03-26 11:54:49 -07:00
ice_switch.h ice: Add support for VLANs and offloads 2018-03-26 11:54:49 -07:00
ice_txrx.c ice: Add support for VLANs and offloads 2018-03-26 11:54:49 -07:00
ice_txrx.h ice: Add support for VLANs and offloads 2018-03-26 11:54:49 -07:00
ice_type.h ice: Support link events, reset and rebuild 2018-03-26 12:32:17 -07:00