Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_flex_type.h
/* SPDX-License-Identifier: BSD-3-Clause */ | /* SPDX-License-Identifier: BSD-3-Clause */ | ||||
/* Copyright (c) 2020, Intel Corporation | /* Copyright (c) 2021, Intel Corporation | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions are met: | * modification, are permitted provided that the following conditions are met: | ||||
* | * | ||||
* 1. Redistributions of source code must retain the above copyright notice, | * 1. Redistributions of source code must retain the above copyright notice, | ||||
* this list of conditions and the following disclaimer. | * this list of conditions and the following disclaimer. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | struct ice_buf_hdr { | ||||
struct ice_section_entry section_entry[STRUCT_HACK_VAR_LEN]; | struct ice_section_entry section_entry[STRUCT_HACK_VAR_LEN]; | ||||
}; | }; | ||||
#define ICE_MAX_ENTRIES_IN_BUF(hd_sz, ent_sz) ((ICE_PKG_BUF_SIZE - \ | #define ICE_MAX_ENTRIES_IN_BUF(hd_sz, ent_sz) ((ICE_PKG_BUF_SIZE - \ | ||||
ice_struct_size((struct ice_buf_hdr *)0, section_entry, 1) - (hd_sz)) /\ | ice_struct_size((struct ice_buf_hdr *)0, section_entry, 1) - (hd_sz)) /\ | ||||
(ent_sz)) | (ent_sz)) | ||||
/* ice package section IDs */ | /* ice package section IDs */ | ||||
#define ICE_SID_METADATA 1 | |||||
#define ICE_SID_XLT0_SW 10 | #define ICE_SID_XLT0_SW 10 | ||||
#define ICE_SID_XLT_KEY_BUILDER_SW 11 | #define ICE_SID_XLT_KEY_BUILDER_SW 11 | ||||
#define ICE_SID_XLT1_SW 12 | #define ICE_SID_XLT1_SW 12 | ||||
#define ICE_SID_XLT2_SW 13 | #define ICE_SID_XLT2_SW 13 | ||||
#define ICE_SID_PROFID_TCAM_SW 14 | #define ICE_SID_PROFID_TCAM_SW 14 | ||||
#define ICE_SID_PROFID_REDIR_SW 15 | #define ICE_SID_PROFID_REDIR_SW 15 | ||||
#define ICE_SID_FLD_VEC_SW 16 | #define ICE_SID_FLD_VEC_SW 16 | ||||
#define ICE_SID_CDID_KEY_BUILDER_SW 17 | #define ICE_SID_CDID_KEY_BUILDER_SW 17 | ||||
▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
#define ICE_PTYPE_IPV4_ICMP_PAY 28 | #define ICE_PTYPE_IPV4_ICMP_PAY 28 | ||||
#define ICE_PTYPE_IPV6FRAG_PAY 88 | #define ICE_PTYPE_IPV6FRAG_PAY 88 | ||||
#define ICE_PTYPE_IPV6_PAY 89 | #define ICE_PTYPE_IPV6_PAY 89 | ||||
#define ICE_PTYPE_IPV6_UDP_PAY 90 | #define ICE_PTYPE_IPV6_UDP_PAY 90 | ||||
#define ICE_PTYPE_IPV6_TCP_PAY 92 | #define ICE_PTYPE_IPV6_TCP_PAY 92 | ||||
#define ICE_PTYPE_IPV6_SCTP_PAY 93 | #define ICE_PTYPE_IPV6_SCTP_PAY 93 | ||||
#define ICE_PTYPE_IPV6_ICMP_PAY 94 | #define ICE_PTYPE_IPV6_ICMP_PAY 94 | ||||
struct ice_meta_sect { | |||||
struct ice_pkg_ver ver; | |||||
#define ICE_META_SECT_NAME_SIZE 28 | |||||
char name[ICE_META_SECT_NAME_SIZE]; | |||||
__le32 track_id; | |||||
}; | |||||
/* Packet Type Groups (PTG) - Inner Most fields (IM) */ | /* Packet Type Groups (PTG) - Inner Most fields (IM) */ | ||||
#define ICE_PTG_IM_IPV4_TCP 16 | #define ICE_PTG_IM_IPV4_TCP 16 | ||||
#define ICE_PTG_IM_IPV4_UDP 17 | #define ICE_PTG_IM_IPV4_UDP 17 | ||||
#define ICE_PTG_IM_IPV4_SCTP 18 | #define ICE_PTG_IM_IPV4_SCTP 18 | ||||
#define ICE_PTG_IM_IPV4_PAY 20 | #define ICE_PTG_IM_IPV4_PAY 20 | ||||
#define ICE_PTG_IM_IPV4_OTHER 21 | #define ICE_PTG_IM_IPV4_OTHER 21 | ||||
#define ICE_PTG_IM_IPV6_TCP 32 | #define ICE_PTG_IM_IPV6_TCP 32 | ||||
#define ICE_PTG_IM_IPV6_UDP 33 | #define ICE_PTG_IM_IPV6_UDP 33 | ||||
▲ Show 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | struct ice_pkg_enum { | ||||
void *(*handler)(u32 sect_type, void *section, u32 index, u32 *offset); | void *(*handler)(u32 sect_type, void *section, u32 index, u32 *offset); | ||||
}; | }; | ||||
/* Tunnel enabling */ | /* Tunnel enabling */ | ||||
enum ice_tunnel_type { | enum ice_tunnel_type { | ||||
TNL_VXLAN = 0, | TNL_VXLAN = 0, | ||||
TNL_GENEVE, | TNL_GENEVE, | ||||
TNL_GTP, | |||||
TNL_LAST = 0xFF, | TNL_LAST = 0xFF, | ||||
TNL_ALL = 0xFF, | TNL_ALL = 0xFF, | ||||
}; | }; | ||||
struct ice_tunnel_type_scan { | struct ice_tunnel_type_scan { | ||||
enum ice_tunnel_type type; | enum ice_tunnel_type type; | ||||
const char *label_prefix; | const char *label_prefix; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |