Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_protocol_type.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | enum ice_protocol_type { | ||||
ICE_NVGRE, | ICE_NVGRE, | ||||
ICE_PROTOCOL_LAST | ICE_PROTOCOL_LAST | ||||
}; | }; | ||||
enum ice_sw_tunnel_type { | enum ice_sw_tunnel_type { | ||||
ICE_NON_TUN = 0, | ICE_NON_TUN = 0, | ||||
ICE_SW_TUN_AND_NON_TUN, | ICE_SW_TUN_AND_NON_TUN, | ||||
ICE_SW_TUN_VXLAN_GPE, | ICE_SW_TUN_VXLAN_GPE, | ||||
ICE_SW_TUN_GENEVE, | ICE_SW_TUN_GENEVE, /* GENEVE matches only non-VLAN pkts */ | ||||
ICE_SW_TUN_VXLAN, | ICE_SW_TUN_GENEVE_VLAN, /* GENEVE matches both VLAN and non-VLAN pkts */ | ||||
ICE_SW_TUN_VXLAN, /* VXLAN matches only non-VLAN pkts */ | |||||
ICE_SW_TUN_VXLAN_VLAN, /* VXLAN matches both VLAN and non-VLAN pkts */ | |||||
ICE_SW_TUN_NVGRE, | ICE_SW_TUN_NVGRE, | ||||
ICE_SW_TUN_UDP, /* This means all "UDP" tunnel types: VXLAN-GPE, VXLAN | ICE_SW_TUN_UDP, /* This means all "UDP" tunnel types: VXLAN-GPE, VXLAN | ||||
* and GENEVE | * and GENEVE | ||||
*/ | */ | ||||
ICE_ALL_TUNNELS /* All tunnel types including NVGRE */ | ICE_ALL_TUNNELS /* All tunnel types including NVGRE */ | ||||
}; | }; | ||||
/* Decoders for ice_prot_id: | /* Decoders for ice_prot_id: | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
* need to use flags from the field vector | * need to use flags from the field vector | ||||
*/ | */ | ||||
#define ICE_UDP_OF_HW 52 /* UDP Tunnels */ | #define ICE_UDP_OF_HW 52 /* UDP Tunnels */ | ||||
#define ICE_GRE_OF_HW 64 /* NVGRE */ | #define ICE_GRE_OF_HW 64 /* NVGRE */ | ||||
#define ICE_META_DATA_ID_HW 255 /* this is used for tunnel type */ | #define ICE_META_DATA_ID_HW 255 /* this is used for tunnel type */ | ||||
#define ICE_MDID_SIZE 2 | #define ICE_MDID_SIZE 2 | ||||
#define ICE_TUN_FLAG_MDID 21 | #define ICE_TUN_FLAG_MDID 21 | ||||
#define ICE_TUN_FLAG_MDID_OFF (ICE_MDID_SIZE * ICE_TUN_FLAG_MDID) | |||||
#define ICE_TUN_FLAG_MASK 0xFF | #define ICE_TUN_FLAG_MASK 0xFF | ||||
#define ICE_TUN_FLAG_VLAN_MASK 0x01 | |||||
#define ICE_TUN_FLAG_FV_IND 2 | #define ICE_TUN_FLAG_FV_IND 2 | ||||
#define ICE_PROTOCOL_MAX_ENTRIES 16 | #define ICE_PROTOCOL_MAX_ENTRIES 16 | ||||
/* Mapping of software defined protocol ID to hardware defined protocol ID */ | /* Mapping of software defined protocol ID to hardware defined protocol ID */ | ||||
struct ice_protocol_entry { | struct ice_protocol_entry { | ||||
enum ice_protocol_type type; | enum ice_protocol_type type; | ||||
u8 protocol_id; | u8 protocol_id; | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |