net/octeontx2: support flow parse actions
[dpdk.git] / drivers / net / octeontx2 / otx2_rx.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2019 Marvell International Ltd.
3  */
4
5 #ifndef __OTX2_RX_H__
6 #define __OTX2_RX_H__
7
8 #define PTYPE_WIDTH 12
9 #define PTYPE_NON_TUNNEL_ARRAY_SZ       BIT(PTYPE_WIDTH)
10 #define PTYPE_TUNNEL_ARRAY_SZ           BIT(PTYPE_WIDTH)
11 #define PTYPE_ARRAY_SZ                  ((PTYPE_NON_TUNNEL_ARRAY_SZ +\
12                                          PTYPE_TUNNEL_ARRAY_SZ) *\
13                                          sizeof(uint16_t))
14
15 #define NIX_RX_OFFLOAD_PTYPE_F         BIT(1)
16 #define NIX_RX_OFFLOAD_MARK_UPDATE_F   BIT(4)
17 #define NIX_RX_OFFLOAD_TSTAMP_F        BIT(5)
18
19 #define NIX_TIMESYNC_RX_OFFSET          8
20
21 struct otx2_timesync_info {
22         uint64_t        rx_tstamp;
23         rte_iova_t      tx_tstamp_iova;
24         uint64_t        *tx_tstamp;
25         uint8_t         tx_ready;
26         uint8_t         rx_ready;
27 } __rte_cache_aligned;
28
29 #endif /* __OTX2_RX_H__ */