1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2021 Xilinx, Inc.
6 #ifndef _SFC_FLOW_TUNNEL_H
7 #define _SFC_FLOW_TUNNEL_H
17 /** Flow Tunnel (FT) SW entry ID */
18 typedef uint8_t sfc_ft_id_t;
20 #define SFC_FT_TUNNEL_MARK_BITS \
21 (sizeof(sfc_ft_id_t) * CHAR_BIT)
23 #define SFC_FT_USER_MARK_BITS \
24 (sizeof(uint32_t) * CHAR_BIT - SFC_FT_TUNNEL_MARK_BITS)
26 #define SFC_FT_USER_MARK_MASK \
27 RTE_LEN2MASK(SFC_FT_USER_MARK_BITS, uint32_t)
31 bool sfc_flow_tunnel_is_supported(struct sfc_adapter *sa);
33 bool sfc_flow_tunnel_is_active(struct sfc_adapter *sa);
38 #endif /* _SFC_FLOW_TUNNEL_H */