Loading...
Note: File does not exist in v4.6.
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
7void ice_fltr_free_list(struct device *dev, struct list_head *h);
8enum ice_status
9ice_fltr_add_mac_to_list(struct ice_vsi *vsi, struct list_head *list,
10 const u8 *mac, enum ice_sw_fwd_act_type action);
11enum ice_status
12ice_fltr_add_mac(struct ice_vsi *vsi, const u8 *mac,
13 enum ice_sw_fwd_act_type action);
14enum ice_status
15ice_fltr_add_mac_and_broadcast(struct ice_vsi *vsi, const u8 *mac,
16 enum ice_sw_fwd_act_type action);
17enum ice_status
18ice_fltr_add_mac_list(struct ice_vsi *vsi, struct list_head *list);
19enum ice_status
20ice_fltr_remove_mac(struct ice_vsi *vsi, const u8 *mac,
21 enum ice_sw_fwd_act_type action);
22enum ice_status
23ice_fltr_remove_mac_list(struct ice_vsi *vsi, struct list_head *list);
24
25enum ice_status
26ice_fltr_add_vlan(struct ice_vsi *vsi, u16 vid,
27 enum ice_sw_fwd_act_type action);
28enum ice_status
29ice_fltr_remove_vlan(struct ice_vsi *vsi, u16 vid,
30 enum ice_sw_fwd_act_type action);
31
32enum ice_status
33ice_fltr_add_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
34 enum ice_sw_fwd_act_type action);
35enum ice_status
36ice_fltr_remove_eth(struct ice_vsi *vsi, u16 ethertype, u16 flag,
37 enum ice_sw_fwd_act_type action);
38void ice_fltr_remove_all(struct ice_vsi *vsi);
39#endif