xref: /linux/include/linux/qed/iwarp_common.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2 /* QLogic qed NIC Driver
3  * Copyright (c) 2015-2017  QLogic Corporation
4  * Copyright (c) 2019-2020 Marvell International Ltd.
5  */
6 
7 #ifndef __IWARP_COMMON__
8 #define __IWARP_COMMON__
9 
10 #include <linux/qed/rdma_common.h>
11 
12 /************************/
13 /* IWARP FW CONSTANTS	*/
14 /************************/
15 
16 #define IWARP_ACTIVE_MODE 0
17 #define IWARP_PASSIVE_MODE 1
18 
19 #define IWARP_SHARED_QUEUE_PAGE_SIZE		(0x8000)
20 #define IWARP_SHARED_QUEUE_PAGE_RQ_PBL_OFFSET	(0x4000)
21 #define IWARP_SHARED_QUEUE_PAGE_RQ_PBL_MAX_SIZE	(0x1000)
22 #define IWARP_SHARED_QUEUE_PAGE_SQ_PBL_OFFSET	(0x5000)
23 #define IWARP_SHARED_QUEUE_PAGE_SQ_PBL_MAX_SIZE	(0x3000)
24 
25 #define IWARP_REQ_MAX_INLINE_DATA_SIZE		(128)
26 #define IWARP_REQ_MAX_SINGLE_SQ_WQE_SIZE	(176)
27 
28 #define IWARP_MAX_QPS				(64 * 1024)
29 
30 #endif /* __IWARP_COMMON__ */
31