Branch data Line data Source code
1 : : %{
2 : : #if __GNUC__ >= 7
3 : : _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
4 : : #endif
5 : : #include <stddef.h>
6 : : #include "conf-parser.h"
7 : : #include "ethtool-util.h"
8 : : #include "link-config.h"
9 : : #include "network-internal.h"
10 : : %}
11 : : struct ConfigPerfItem;
12 : : %null_strings
13 : : %language=ANSI-C
14 : : %define slot-name section_and_lvalue
15 : : %define hash-function-name link_config_gperf_hash
16 : : %define lookup-function-name link_config_gperf_lookup
17 : : %readonly-tables
18 : : %omit-struct-type
19 : : %struct-type
20 : : %includes
21 : : %%
22 : : Match.MACAddress, config_parse_hwaddrs, 0, offsetof(link_config, match_mac)
23 : : Match.OriginalName, config_parse_match_ifnames, 0, offsetof(link_config, match_name)
24 : : Match.Path, config_parse_match_strv, 0, offsetof(link_config, match_path)
25 : : Match.Driver, config_parse_match_strv, 0, offsetof(link_config, match_driver)
26 : : Match.Type, config_parse_match_strv, 0, offsetof(link_config, match_type)
27 : 0 : Match.Property, config_parse_match_property, 0, offsetof(link_config, match_property)
28 : : Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(link_config, conditions)
29 : : Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(link_config, conditions)
30 : : Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(link_config, conditions)
31 [ # # ]: 0 : Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(link_config, conditions)
32 : : Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(link_config, conditions)
33 : 0 : Link.Description, config_parse_string, 0, offsetof(link_config, description)
34 : : Link.MACAddressPolicy, config_parse_mac_address_policy, 0, offsetof(link_config, mac_address_policy)
35 [ # # ]: 0 : Link.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, mac)
36 : : Link.NamePolicy, config_parse_name_policy, 0, offsetof(link_config, name_policy)
37 : 0 : Link.Name, config_parse_ifname, 0, offsetof(link_config, name)
38 : : Link.Alias, config_parse_ifalias, 0, offsetof(link_config, alias)
39 [ # # # # : 0 : Link.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(link_config, mtu)
# # ]
40 : 0 : Link.BitsPerSecond, config_parse_si_size, 0, offsetof(link_config, speed)
41 : : Link.Duplex, config_parse_duplex, 0, offsetof(link_config, duplex)
42 : : Link.AutoNegotiation, config_parse_tristate, 0, offsetof(link_config, autonegotiation)
43 : 0 : Link.WakeOnLan, config_parse_wol, 0, offsetof(link_config, wol)
44 : : Link.Port, config_parse_port, 0, offsetof(link_config, port)
45 : : Link.GenericSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GSO])
46 : : Link.TCPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_TSO])
47 : : Link.TCP6SegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_TSO6])
48 : : Link.UDPSegmentationOffload, config_parse_warn_compat, DISABLED_LEGACY, 0
49 : : Link.GenericReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GRO])
50 : : Link.LargeReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_LRO])
51 : : Link.RxChannels, config_parse_channel, 0, offsetof(link_config, channels)
52 : : Link.TxChannels, config_parse_channel, 0, offsetof(link_config, channels)
53 : : Link.OtherChannels, config_parse_channel, 0, offsetof(link_config, channels)
54 : : Link.CombinedChannels, config_parse_channel, 0, offsetof(link_config, channels)
55 : : Link.Advertise, config_parse_advertise, 0, offsetof(link_config, advertise)
|