net/cxgbe: support flow API for source MAC rewrite
[dpdk.git] / drivers / net / cxgbe / base / t4_tcb.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Chelsio Communications.
3  * All rights reserved.
4  */
5
6 #ifndef _T4_TCB_DEFS_H
7 #define _T4_TCB_DEFS_H
8
9 /* 31:24 */
10 #define W_TCB_SMAC_SEL    0
11 #define S_TCB_SMAC_SEL    24
12 #define M_TCB_SMAC_SEL    0xffULL
13 #define V_TCB_SMAC_SEL(x) ((x) << S_TCB_SMAC_SEL)
14
15 /* 95:32 */
16 #define W_TCB_T_FLAGS    1
17
18 /* 105:96 */
19 #define W_TCB_RSS_INFO    3
20 #define S_TCB_RSS_INFO    0
21 #define M_TCB_RSS_INFO    0x3ffULL
22 #define V_TCB_RSS_INFO(x) ((x) << S_TCB_RSS_INFO)
23
24 /* 191:160 */
25 #define W_TCB_TIMESTAMP    5
26 #define S_TCB_TIMESTAMP    0
27 #define M_TCB_TIMESTAMP    0xffffffffULL
28 #define V_TCB_TIMESTAMP(x) ((x) << S_TCB_TIMESTAMP)
29
30 /* 223:192 */
31 #define W_TCB_T_RTT_TS_RECENT_AGE    6
32 #define S_TCB_T_RTT_TS_RECENT_AGE    0
33 #define M_TCB_T_RTT_TS_RECENT_AGE    0xffffffffULL
34 #define V_TCB_T_RTT_TS_RECENT_AGE(x) ((x) << S_TCB_T_RTT_TS_RECENT_AGE)
35
36 /* 255:224 */
37 #define S_TCB_T_RTSEQ_RECENT    0
38 #define M_TCB_T_RTSEQ_RECENT    0xffffffffULL
39 #define V_TCB_T_RTSEQ_RECENT(x) ((x) << S_TCB_T_RTSEQ_RECENT)
40
41 #define S_TF_CCTRL_ECE    60
42
43 #define S_TF_CCTRL_CWR    61
44
45 #define S_TF_CCTRL_RFR    62
46
47 #endif /* _T4_TCB_DEFS_H */