Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_switch.h
/* SPDX-License-Identifier: BSD-3-Clause */ | /* SPDX-License-Identifier: BSD-3-Clause */ | ||||
/* Copyright (c) 2022, Intel Corporation | /* Copyright (c) 2023, 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 223 Lines • ▼ Show 20 Lines | struct ice_adv_rule_flags_info { | ||||
u8 act_valid; /* indicate if flags in act are valid */ | 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 */ | ||||
u8 add_dir_lkup; | |||||
u16 fltr_rule_id; | u16 fltr_rule_id; | ||||
u16 lg_id; | u16 lg_id; | ||||
u16 vlan_type; | |||||
struct ice_adv_rule_flags_info flags_info; | 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 | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | ice_aq_get_res_alloc(struct ice_hw *hw, u16 *num_entries, | ||||
struct ice_aqc_get_res_resp_elem *buf, u16 buf_size, | struct ice_aqc_get_res_resp_elem *buf, u16 buf_size, | ||||
struct ice_sq_cd *cd); | struct ice_sq_cd *cd); | ||||
enum ice_status | enum ice_status | ||||
ice_aq_get_res_descs(struct ice_hw *hw, u16 num_entries, | ice_aq_get_res_descs(struct ice_hw *hw, u16 num_entries, | ||||
struct ice_aqc_res_elem *buf, u16 buf_size, u16 res_type, | struct ice_aqc_res_elem *buf, u16 buf_size, u16 res_type, | ||||
bool res_shared, u16 *desc_id, struct ice_sq_cd *cd); | bool res_shared, u16 *desc_id, struct ice_sq_cd *cd); | ||||
enum ice_status | enum ice_status | ||||
ice_add_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_list); | ice_add_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_list); | ||||
enum ice_status | enum ice_status ice_remove_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *v_list); | ||||
ice_remove_vlan(struct ice_hw *hw, struct LIST_HEAD_TYPE *v_list); | |||||
void ice_rem_all_sw_rules_info(struct ice_hw *hw); | void ice_rem_all_sw_rules_info(struct ice_hw *hw); | ||||
enum ice_status ice_add_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_lst); | enum ice_status ice_add_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_lst); | ||||
enum ice_status ice_remove_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_lst); | enum ice_status ice_remove_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *m_lst); | ||||
enum ice_status | enum ice_status | ||||
ice_add_eth_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *em_list); | ice_add_eth_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *em_list); | ||||
enum ice_status | enum ice_status | ||||
ice_remove_eth_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *em_list); | ice_remove_eth_mac(struct ice_hw *hw, struct LIST_HEAD_TYPE *em_list); | ||||
enum ice_status | enum ice_status | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |