/* bnx2fc_constants.h: QLogic Linux FCoE offload driver. * Handles operations such as session offload/upload etc, and manages * session resources such as connection id and qp resources. * * Copyright (c) 2008-2013 Broadcom Corporation * Copyright (c) 2014-2016 QLogic Corporation * Copyright (c) 2016-2017 Cavium Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. *
*/
/** * This file defines HSI constants for the FCoE flows
*/
/* Current FCoE HSI version number composed of two fields (16 bit) */ /* Implies on a change broken previous HSI */ #define FCOE_HSI_MAJOR_VERSION (2) /* Implies on a change which does not broken previous HSI */ #define FCOE_HSI_MINOR_VERSION (1)
/* E_D_TOV timer default wraparound value (2 sec) in 20 ms resolution */ #define FCOE_E_D_TOV_DEFAULT_WRAPAROUND_VAL \
(2000 / FCOE_E_D_TOV_TIMER_RESOLUTION_MS)
/* REC_TOV timer default wraparound value (3 sec) in 20 ms resolution */ #define FCOE_REC_TOV_DEFAULT_WRAPAROUND_VAL \
(3000 / FCOE_REC_TIMER_RESOLUTION_MS)
#define FCOE_NUM_OF_TIMER_TASKS (8 * 1024)
#define FCOE_NUM_OF_CACHED_TASKS_TIMER (8)
/* Task context constants */ /******** Remove FCP_CMD write tce sleep ***********************/ /* In case timer services are required then shall be updated by Xstorm after * start processing the task. In case no timer facilities are required then the * driver would initialize the state to this value * #define FCOE_TASK_TX_STATE_NORMAL 0 * After driver has initialize the task in case timer services required * #define FCOE_TASK_TX_STATE_INIT 1
******** Remove FCP_CMD write tce sleep ***********************/ /* After driver has initialize the task in case timer services required */ #define FCOE_TASK_TX_STATE_INIT 0 /* In case timer services are required then shall be updated by Xstorm after * start processing the task. In case no timer facilities are required then the * driver would initialize the state to this value
*/ #define FCOE_TASK_TX_STATE_NORMAL 1 /* Task is under abort procedure. Updated in order to stop processing of * pending WQEs on this task
*/ #define FCOE_TASK_TX_STATE_ABORT 2 /* For E_D_T_TOV timer expiration in Xstorm (Class 2 only) */ #define FCOE_TASK_TX_STATE_ERROR 3 /* For REC_TOV timer expiration indication received from Xstorm */ #define FCOE_TASK_TX_STATE_WARNING 4 /* For completed unsolicited task */ #define FCOE_TASK_TX_STATE_UNSOLICITED_COMPLETED 5 /* For exchange cleanup request task */ #define FCOE_TASK_TX_STATE_EXCHANGE_CLEANUP 6 /* For sequence cleanup request task */ #define FCOE_TASK_TX_STATE_SEQUENCE_CLEANUP 7 /* For completion the ABTS task. */ #define FCOE_TASK_TX_STATE_ABTS_TX 8
#define FCOE_TASK_RX_STATE_NORMAL 0 #define FCOE_TASK_RX_STATE_COMPLETED 1 /* Obsolete: Intermediate completion (middle path with local completion) */ #define FCOE_TASK_RX_STATE_INTER_COMP 2 /* For REC_TOV timer expiration indication received from Xstorm */ #define FCOE_TASK_RX_STATE_WARNING 3 /* For E_D_T_TOV timer expiration in Ustorm */ #define FCOE_TASK_RX_STATE_ERROR 4 /* FW only: First visit at rx-path, part of the abts round trip */ #define FCOE_TASK_RX_STATE_ABTS_IN_PROCESS 5 /* FW only: Second visit at rx-path, after ABTS frame transmitted */ #define FCOE_TASK_RX_STATE_ABTS_TRANSMITTED 6 /* Special completion indication in case of task was aborted. */ #define FCOE_TASK_RX_STATE_ABTS_COMPLETED 7 /* FW only: First visit at rx-path, part of the cleanup round trip */ #define FCOE_TASK_RX_STATE_EXCHANGE_CLEANUP_IN_PROCESS 8 /* FW only: Special completion indication in case of task was cleaned. */ #define FCOE_TASK_RX_STATE_EXCHANGE_CLEANUP_COMPLETED 9 /* Not in used: Special completion indication (in task requested the exchange * cleanup) in case cleaned task is in non-valid.
*/ #define FCOE_TASK_RX_STATE_ABORT_CLEANUP_COMPLETED 10 /* Special completion indication (in task requested the sequence cleanup) in * case cleaned task was already returned to normal.
*/ #define FCOE_TASK_RX_STATE_IGNORED_SEQUENCE_CLEANUP 11
/* FCoE maximum elements in hash table */ #define FCOE_MAX_ELEMENTS_IN_HASH_TABLE_ROW 8
/* FCoE half of the elements in hash table */ #define FCOE_HALF_ELEMENTS_IN_HASH_TABLE_ROW \
(FCOE_MAX_ELEMENTS_IN_HASH_TABLE_ROW / 2)
/* FcoE number of cached T2 entries */ #define T_FCOE_NUMBER_OF_CACHED_T2_ENTRIES (4)
/* FCoE maximum elements in hash table */ #define FCOE_HASH_TBL_CHUNK_SIZE 16384
/* Everest FCoE connection type */ #define B577XX_FCOE_CONNECTION_TYPE 4
/* FCoE number of rows (in log). This number derives * from the maximum connections supported which is 2048. * TBA: Need a different constant for E2
*/ #define FCOE_MAX_NUM_SESSIONS_LOG 11
#define FC_ABTS_REPLY_MAX_PAYLOAD_LEN 12
/* Error codes for Error Reporting in slow path flows */ #define FCOE_SLOW_PATH_ERROR_CODE_TOO_MANY_FUNCS 0 #define FCOE_SLOW_PATH_ERROR_CODE_NO_LICENSE 1
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.