18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright (C) 2018-2020, Intel Corporation. */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef _ICE_FLTR_H_
58c2ecf20Sopenharmony_ci#define _ICE_FLTR_H_
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_civoid ice_fltr_free_list(struct device *dev, struct list_head *h);
88c2ecf20Sopenharmony_cienum ice_status
98c2ecf20Sopenharmony_ciice_fltr_add_mac_to_list(struct ice_vsi *vsi, struct list_head *list,
108c2ecf20Sopenharmony_ci			 const u8 *mac, enum ice_sw_fwd_act_type action);
118c2ecf20Sopenharmony_cienum ice_status
128c2ecf20Sopenharmony_ciice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac,
138c2ecf20Sopenharmony_ci		 enum ice_sw_fwd_act_type action);
148c2ecf20Sopenharmony_cienum ice_status
158c2ecf20Sopenharmony_ciice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac,
168c2ecf20Sopenharmony_ci			       enum ice_sw_fwd_act_type action);
178c2ecf20Sopenharmony_cienum ice_status
188c2ecf20Sopenharmony_ciice_fltr_add_mac_list(struct ice_vsi *vsi, struct list_head *list);
198c2ecf20Sopenharmony_cienum ice_status
208c2ecf20Sopenharmony_ciice_fltr_remove_mac(struct ice_vsi *vsi, const u8 *mac,
218c2ecf20Sopenharmony_ci		    enum ice_sw_fwd_act_type action);
228c2ecf20Sopenharmony_cienum ice_status
238c2ecf20Sopenharmony_ciice_fltr_remove_mac_list(struct ice_vsi *vsi, struct list_head *list);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cienum ice_status
268c2ecf20Sopenharmony_ciice_fltr_add_vlan(struct ice_vsi *vsi, u16 vid,
278c2ecf20Sopenharmony_ci		  enum ice_sw_fwd_act_type action);
288c2ecf20Sopenharmony_cienum ice_status
298c2ecf20Sopenharmony_ciice_fltr_remove_vlan(struct ice_vsi *vsi, u16 vid,
308c2ecf20Sopenharmony_ci		     enum ice_sw_fwd_act_type action);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_cienum ice_status
338c2ecf20Sopenharmony_ciice_fltr_add_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
348c2ecf20Sopenharmony_ci		 enum ice_sw_fwd_act_type action);
358c2ecf20Sopenharmony_cienum ice_status
368c2ecf20Sopenharmony_ciice_fltr_remove_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
378c2ecf20Sopenharmony_ci		    enum ice_sw_fwd_act_type action);
388c2ecf20Sopenharmony_civoid ice_fltr_remove_all(struct ice_vsi *vsi);
398c2ecf20Sopenharmony_ci#endif
40