The Switching Process

Handling FPGA Images

product_line_custom
Napatech SmartNIC
category
User Guide

About this task

The switching process is described in this table:

Procedure

  1. The SmartNIC must be in the NEUTRAL state before a switch can be initiated (see NEUTRAL state).
  2. Executing a --switch command, sets the state to IMAGE SWITCH EVENT ARMED (see IMAGE SWITCH EVENT ARMED state). This state indicates that the SmartNIC will switch image when it receives the next PCI slot reset event.
  3. After the PCI slot reset event, the state is automatically forwarded by the support chip to the IMAGE SWITCH EVENT IN PROGRESS state, unless the secondary image was found to be corrupted. The IMAGE SWITCH EVENT IN PROGRESS state (see IMAGE SWITCH EVENT IN PROGRESS state) indicates that the SmartNIC has loaded an FPGA image from the secondary bank.
    Note: If the FPGA image loaded from the secondary bank failed, the state is automatically forwarded to FAILED instead (see FAILED state). This state indicates that the previous load attempt has failed. The --switch --discard command must then be executed to reset the state from FAILED to NEUTRAL.
  4. When the SmartNIC is in the IMAGE SWITCH EVENT IN PROGRESS state, the user must acknowledge the switch event as successful by executing a --switch command with the --confirm argument. This command sets the state back to NEUTRAL, and causes the primary image bank setting to be updated to reflect the currently running bank.
    Note: The --switch --confirm command must be executed before the SmartNIC receives the next PCI slot reset event. Otherwise the SmartNIC will automatically revert to the primary image that was used previously.

Results

Note: A server boot (whether warm or cold) always generates PCI reset events.
Note: A server cold boot event always sets the state to FAILED, if the state was other than NEUTRAL.