2019-05-28 14:02:32 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(C) 2019 Marvell International Ltd.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __OTX2_RX_H__
|
|
|
|
#define __OTX2_RX_H__
|
|
|
|
|
2019-06-26 10:42:14 +00:00
|
|
|
/* Default mark value used when none is provided. */
|
|
|
|
#define OTX2_FLOW_ACTION_FLAG_DEFAULT 0xffff
|
|
|
|
|
2019-05-30 06:54:11 +00:00
|
|
|
#define PTYPE_WIDTH 12
|
|
|
|
#define PTYPE_NON_TUNNEL_ARRAY_SZ BIT(PTYPE_WIDTH)
|
|
|
|
#define PTYPE_TUNNEL_ARRAY_SZ BIT(PTYPE_WIDTH)
|
|
|
|
#define PTYPE_ARRAY_SZ ((PTYPE_NON_TUNNEL_ARRAY_SZ +\
|
|
|
|
PTYPE_TUNNEL_ARRAY_SZ) *\
|
|
|
|
sizeof(uint16_t))
|
|
|
|
|
2019-05-28 14:02:32 +00:00
|
|
|
#define NIX_RX_OFFLOAD_PTYPE_F BIT(1)
|
2019-06-29 10:45:13 +00:00
|
|
|
#define NIX_RX_OFFLOAD_MARK_UPDATE_F BIT(4)
|
2019-05-31 08:24:42 +00:00
|
|
|
#define NIX_RX_OFFLOAD_TSTAMP_F BIT(5)
|
|
|
|
|
|
|
|
#define NIX_TIMESYNC_RX_OFFSET 8
|
|
|
|
|
|
|
|
struct otx2_timesync_info {
|
|
|
|
uint64_t rx_tstamp;
|
|
|
|
rte_iova_t tx_tstamp_iova;
|
|
|
|
uint64_t *tx_tstamp;
|
|
|
|
uint8_t tx_ready;
|
|
|
|
uint8_t rx_ready;
|
|
|
|
} __rte_cache_aligned;
|
2019-05-28 14:02:32 +00:00
|
|
|
|
|
|
|
#endif /* __OTX2_RX_H__ */
|