]> Git Repo - J-linux.git/blob - drivers/net/ethernet/intel/ice/ice_repr.h
Merge tag 'block-6.5-2023-07-03' of git://git.kernel.dk/linux
[J-linux.git] / drivers / net / ethernet / intel / ice / ice_repr.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2019-2021, Intel Corporation. */
3
4 #ifndef _ICE_REPR_H_
5 #define _ICE_REPR_H_
6
7 #include <net/dst_metadata.h>
8
9 struct ice_repr {
10         struct ice_vsi *src_vsi;
11         struct ice_vf *vf;
12         struct ice_q_vector *q_vector;
13         struct net_device *netdev;
14         struct metadata_dst *dst;
15 #ifdef CONFIG_ICE_SWITCHDEV
16         /* info about slow path rule */
17         struct ice_rule_query_data sp_rule;
18 #endif
19 };
20
21 int ice_repr_add_for_all_vfs(struct ice_pf *pf);
22 void ice_repr_rem_from_all_vfs(struct ice_pf *pf);
23
24 void ice_repr_start_tx_queues(struct ice_repr *repr);
25 void ice_repr_stop_tx_queues(struct ice_repr *repr);
26
27 void ice_repr_set_traffic_vsi(struct ice_repr *repr, struct ice_vsi *vsi);
28
29 struct ice_repr *ice_netdev_to_repr(struct net_device *netdev);
30 bool ice_is_port_repr_netdev(struct net_device *netdev);
31 #endif
This page took 0.029013 seconds and 4 git commands to generate.