1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (C) 2018-2020, Intel Corporation. */ 3 4 #ifndef _ICE_FLTR_H_ 5 #define _ICE_FLTR_H_ 6 7 void ice_fltr_free_list(struct device *dev, struct list_head *h); 8 enum ice_status 9 ice_fltr_add_mac_to_list(struct ice_vsi *vsi, struct list_head *list, 10 const u8 *mac, enum ice_sw_fwd_act_type action); 11 enum ice_status 12 ice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac, 13 enum ice_sw_fwd_act_type action); 14 enum ice_status 15 ice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac, 16 enum ice_sw_fwd_act_type action); 17 enum ice_status 18 ice_fltr_add_mac_list(struct ice_vsi *vsi, struct list_head *list); 19 enum ice_status 20 ice_fltr_remove_mac(struct ice_vsi *vsi, const u8 *mac, 21 enum ice_sw_fwd_act_type action); 22 enum ice_status 23 ice_fltr_remove_mac_list(struct ice_vsi *vsi, struct list_head *list); 24 25 enum ice_status 26 ice_fltr_add_vlan(struct ice_vsi *vsi, u16 vid, 27 enum ice_sw_fwd_act_type action); 28 enum ice_status 29 ice_fltr_remove_vlan(struct ice_vsi *vsi, u16 vid, 30 enum ice_sw_fwd_act_type action); 31 32 enum ice_status 33 ice_fltr_add_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag, 34 enum ice_sw_fwd_act_type action); 35 enum ice_status 36 ice_fltr_remove_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag, 37 enum ice_sw_fwd_act_type action); 38 void ice_fltr_remove_all(struct ice_vsi *vsi); 39 #endif 40