2020-06-29 19:05:08 +08:00
|
|
|
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
|
2016-06-03 19:35:33 +08:00
|
|
|
/* QLogic qed NIC Driver
|
2017-01-01 19:57:00 +08:00
|
|
|
* Copyright (c) 2015-2017 QLogic Corporation
|
2020-06-29 19:05:09 +08:00
|
|
|
* Copyright (c) 2019-2020 Marvell International Ltd.
|
2016-06-03 19:35:33 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ROCE_COMMON__
|
|
|
|
#define __ROCE_COMMON__
|
|
|
|
|
2017-12-28 01:30:05 +08:00
|
|
|
/************************/
|
|
|
|
/* ROCE FW CONSTANTS */
|
|
|
|
/************************/
|
2016-06-03 19:35:33 +08:00
|
|
|
|
2017-12-28 01:30:05 +08:00
|
|
|
#define ROCE_REQ_MAX_INLINE_DATA_SIZE (256)
|
|
|
|
#define ROCE_REQ_MAX_SINGLE_SQ_WQE_SIZE (288)
|
2016-06-03 19:35:33 +08:00
|
|
|
|
2017-12-28 01:30:05 +08:00
|
|
|
#define ROCE_MAX_QPS (32 * 1024)
|
|
|
|
#define ROCE_DCQCN_NP_MAX_QPS (64)
|
|
|
|
#define ROCE_DCQCN_RP_MAX_QPS (64)
|
2018-06-05 18:11:16 +08:00
|
|
|
#define ROCE_LKEY_MW_DIF_EN_BIT (28)
|
2017-12-28 01:30:05 +08:00
|
|
|
|
|
|
|
/* Affiliated asynchronous events / errors enumeration */
|
2017-03-12 00:39:18 +08:00
|
|
|
enum roce_async_events_type {
|
|
|
|
ROCE_ASYNC_EVENT_NONE = 0,
|
|
|
|
ROCE_ASYNC_EVENT_COMM_EST = 1,
|
|
|
|
ROCE_ASYNC_EVENT_SQ_DRAINED,
|
|
|
|
ROCE_ASYNC_EVENT_SRQ_LIMIT,
|
|
|
|
ROCE_ASYNC_EVENT_LAST_WQE_REACHED,
|
|
|
|
ROCE_ASYNC_EVENT_CQ_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_LOCAL_INVALID_REQUEST_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_LOCAL_CATASTROPHIC_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_LOCAL_ACCESS_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_QP_CATASTROPHIC_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_CQ_OVERFLOW_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_SRQ_EMPTY,
|
|
|
|
ROCE_ASYNC_EVENT_DESTROY_QP_DONE,
|
2018-03-28 16:42:16 +08:00
|
|
|
ROCE_ASYNC_EVENT_XRC_DOMAIN_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_INVALID_XRCETH_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_XRC_SRQ_CATASTROPHIC_ERR,
|
2017-03-12 00:39:18 +08:00
|
|
|
MAX_ROCE_ASYNC_EVENTS_TYPE
|
|
|
|
};
|
|
|
|
|
2016-06-03 19:35:33 +08:00
|
|
|
#endif /* __ROCE_COMMON__ */
|