2020-06-29 11:05:08 +00:00
|
|
|
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
|
2016-06-03 11:35:33 +00:00
|
|
|
/* QLogic qed NIC Driver
|
2017-01-01 11:57:00 +00:00
|
|
|
* Copyright (c) 2015-2017 QLogic Corporation
|
2020-06-29 11:05:09 +00:00
|
|
|
* Copyright (c) 2019-2020 Marvell International Ltd.
|
2016-06-03 11:35:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ROCE_COMMON__
|
|
|
|
#define __ROCE_COMMON__
|
|
|
|
|
2017-12-27 17:30:05 +00:00
|
|
|
/************************/
|
|
|
|
/* ROCE FW CONSTANTS */
|
|
|
|
/************************/
|
2016-06-03 11:35:33 +00:00
|
|
|
|
2017-12-27 17:30:05 +00:00
|
|
|
#define ROCE_REQ_MAX_INLINE_DATA_SIZE (256)
|
|
|
|
#define ROCE_REQ_MAX_SINGLE_SQ_WQE_SIZE (288)
|
2016-06-03 11:35:33 +00:00
|
|
|
|
2017-12-27 17:30:05 +00:00
|
|
|
#define ROCE_MAX_QPS (32 * 1024)
|
|
|
|
#define ROCE_DCQCN_NP_MAX_QPS (64)
|
|
|
|
#define ROCE_DCQCN_RP_MAX_QPS (64)
|
2018-06-05 10:11:16 +00:00
|
|
|
#define ROCE_LKEY_MW_DIF_EN_BIT (28)
|
2017-12-27 17:30:05 +00:00
|
|
|
|
|
|
|
/* Affiliated asynchronous events / errors enumeration */
|
2017-03-11 16:39:18 +00: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 08:42:16 +00:00
|
|
|
ROCE_ASYNC_EVENT_XRC_DOMAIN_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_INVALID_XRCETH_ERR,
|
|
|
|
ROCE_ASYNC_EVENT_XRC_SRQ_CATASTROPHIC_ERR,
|
2017-03-11 16:39:18 +00:00
|
|
|
MAX_ROCE_ASYNC_EVENTS_TYPE
|
|
|
|
};
|
|
|
|
|
2016-06-03 11:35:33 +00:00
|
|
|
#endif /* __ROCE_COMMON__ */
|