File: ice_repr.h

package info (click to toggle)
linux 6.5.10-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 1,543,168 kB
  • sloc: ansic: 24,120,831; asm: 273,465; sh: 120,693; makefile: 51,817; python: 50,190; perl: 37,916; cpp: 6,158; yacc: 5,116; lex: 2,874; awk: 1,468; ruby: 25; sed: 5
file content (31 lines) | stat: -rw-r--r-- 837 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2019-2021, Intel Corporation. */

#ifndef _ICE_REPR_H_
#define _ICE_REPR_H_

#include <net/dst_metadata.h>

struct ice_repr {
	struct ice_vsi *src_vsi;
	struct ice_vf *vf;
	struct ice_q_vector *q_vector;
	struct net_device *netdev;
	struct metadata_dst *dst;
#ifdef CONFIG_ICE_SWITCHDEV
	/* info about slow path rule */
	struct ice_rule_query_data sp_rule;
#endif
};

int ice_repr_add_for_all_vfs(struct ice_pf *pf);
void ice_repr_rem_from_all_vfs(struct ice_pf *pf);

void ice_repr_start_tx_queues(struct ice_repr *repr);
void ice_repr_stop_tx_queues(struct ice_repr *repr);

void ice_repr_set_traffic_vsi(struct ice_repr *repr, struct ice_vsi *vsi);

struct ice_repr *ice_netdev_to_repr(struct net_device *netdev);
bool ice_is_port_repr_netdev(struct net_device *netdev);
#endif