Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_switch.h
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | struct ice_rule_query_data { | ||||
/* Recipe ID for which the requested rule was added */ | /* Recipe ID for which the requested rule was added */ | ||||
u16 rid; | u16 rid; | ||||
/* Rule ID that was added or is supposed to be removed */ | /* Rule ID that was added or is supposed to be removed */ | ||||
u16 rule_id; | u16 rule_id; | ||||
/* vsi_handle for which Rule was added or is supposed to be removed */ | /* vsi_handle for which Rule was added or is supposed to be removed */ | ||||
u16 vsi_handle; | u16 vsi_handle; | ||||
}; | }; | ||||
/* | |||||
* This structure allows to pass info about lb_en and lan_en | |||||
* flags to ice_add_adv_rule. Values in act would be used | |||||
* only if act_valid was set to true, otherwise dflt | |||||
* values would be used. | |||||
*/ | |||||
struct ice_adv_rule_flags_info { | |||||
u32 act; | |||||
u8 act_valid; /* indicate if flags in act are valid */ | |||||
}; | |||||
struct ice_adv_rule_info { | struct ice_adv_rule_info { | ||||
enum ice_sw_tunnel_type tun_type; | enum ice_sw_tunnel_type tun_type; | ||||
struct ice_sw_act_ctrl sw_act; | struct ice_sw_act_ctrl sw_act; | ||||
u32 priority; | u32 priority; | ||||
u8 rx; /* true means LOOKUP_RX otherwise LOOKUP_TX */ | u8 rx; /* true means LOOKUP_RX otherwise LOOKUP_TX */ | ||||
u16 fltr_rule_id; | u16 fltr_rule_id; | ||||
struct ice_adv_rule_flags_info flags_info; | |||||
}; | }; | ||||
/* A collection of one or more four word recipe */ | /* A collection of one or more four word recipe */ | ||||
struct ice_sw_recipe { | struct ice_sw_recipe { | ||||
/* For a chained recipe the root recipe is what should be used for | /* For a chained recipe the root recipe is what should be used for | ||||
* programming rules | * programming rules | ||||
*/ | */ | ||||
u8 is_root; | u8 is_root; | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |