Debian Codegraph @

src/network/netdev/bond.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "bond-util.h"
5 #include "shared-forward.h"
6 #include "netdev.h"
7
8 typedef struct Bond {
9 NetDev meta;
10
11 BondMode mode;
12 BondXmitHashPolicy xmit_hash_policy;
13 BondLacpRate lacp_rate;
14 BondAdSelect ad_select;
15 BondFailOverMac fail_over_mac;
16 BondArpValidate arp_validate;
17 BondArpAllTargets arp_all_targets;
18 BondPrimaryReselect primary_reselect;
19
20 int tlb_dynamic_lb;
21
22 bool all_slaves_active;
23
24 unsigned resend_igmp;
25 unsigned packets_per_slave;
26 unsigned num_grat_arp;
27 unsigned min_links;
28
29 uint16_t ad_actor_sys_prio;
30 uint16_t ad_user_port_key;
31 struct ether_addr ad_actor_system;
32
33 uint8_t arp_missed_max;
34
35 usec_t miimon;
36 usec_t updelay;
37 usec_t downdelay;
38 usec_t arp_interval;
39 usec_t lp_interval;
40 usec_t peer_notify_delay;
41
42 OrderedSet *arp_ip_targets;
43 } Bond;
44
45 DEFINE_NETDEV_CAST(BOND, Bond);
46 extern const NetDevVTable bond_vtable;
47
48 CONFIG_PARSER_PROTOTYPE(config_parse_bond_mode);
49 CONFIG_PARSER_PROTOTYPE(config_parse_bond_xmit_hash_policy);
50 CONFIG_PARSER_PROTOTYPE(config_parse_bond_lacp_rate);
51 CONFIG_PARSER_PROTOTYPE(config_parse_bond_ad_select);
52 CONFIG_PARSER_PROTOTYPE(config_parse_bond_fail_over_mac);
53 CONFIG_PARSER_PROTOTYPE(config_parse_bond_arp_validate);
54 CONFIG_PARSER_PROTOTYPE(config_parse_bond_arp_all_targets);
55 CONFIG_PARSER_PROTOTYPE(config_parse_bond_primary_reselect);
56 CONFIG_PARSER_PROTOTYPE(config_parse_arp_ip_target_address);
57 CONFIG_PARSER_PROTOTYPE(config_parse_ad_actor_sys_prio);
58 CONFIG_PARSER_PROTOTYPE(config_parse_ad_user_port_key);
59 CONFIG_PARSER_PROTOTYPE(config_parse_ad_actor_system);