net/octeontx2: support packet type
[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
17 #endif /* __OTX2_RX_H__ */