6e892eabce
The fields from CQE needs to be converted to ptype and rx ol flags in mbuf. This patch adds create lookup memory for those items to be used in Fastpath. Signed-off-by: Jerin Jacob <jerinj@marvell.com> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com> Signed-off-by: Harman Kalra <hkalra@marvell.com>
18 lines
448 B
C
18 lines
448 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(C) 2019 Marvell International Ltd.
|
|
*/
|
|
|
|
#ifndef __OTX2_RX_H__
|
|
#define __OTX2_RX_H__
|
|
|
|
#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))
|
|
|
|
#define NIX_RX_OFFLOAD_PTYPE_F BIT(1)
|
|
|
|
#endif /* __OTX2_RX_H__ */
|