1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2019 Marvell International Ltd.
8 /* Default mark value used when none is provided. */
9 #define OTX2_FLOW_ACTION_FLAG_DEFAULT 0xffff
11 #define PTYPE_WIDTH 12
12 #define PTYPE_NON_TUNNEL_ARRAY_SZ BIT(PTYPE_WIDTH)
13 #define PTYPE_TUNNEL_ARRAY_SZ BIT(PTYPE_WIDTH)
14 #define PTYPE_ARRAY_SZ ((PTYPE_NON_TUNNEL_ARRAY_SZ +\
15 PTYPE_TUNNEL_ARRAY_SZ) *\
18 #define NIX_RX_OFFLOAD_PTYPE_F BIT(1)
19 #define NIX_RX_OFFLOAD_MARK_UPDATE_F BIT(4)
20 #define NIX_RX_OFFLOAD_TSTAMP_F BIT(5)
22 #define NIX_TIMESYNC_RX_OFFSET 8
24 struct otx2_timesync_info {
26 rte_iova_t tx_tstamp_iova;
30 } __rte_cache_aligned;
32 #endif /* __OTX2_RX_H__ */