3 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
6 #include "conf-parser.h"
7 #include "ethtool-util.h"
8 #include "link-config.h"
9 #include "network-internal.h"
11 struct ConfigPerfItem;
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
22 Match.MACAddress, config_parse_hwaddrs, 0, offsetof(link_config, match_mac)
23 Match.OriginalName, config_parse_ifnames, 0, offsetof(link_config, match_name)
24 Match.Path, config_parse_strv, 0, offsetof(link_config, match_path)
25 Match.Driver, config_parse_strv, 0, offsetof(link_config, match_driver)
26 Match.Type, config_parse_strv, 0, offsetof(link_config, match_type)
27 Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(link_config, match_host)
28 Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(link_config, match_virt)
29 Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(link_config, match_kernel_cmdline)
30 Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(link_config, match_kernel_version)
31 Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(link_config, match_arch)
32 Link.Description, config_parse_string, 0, offsetof(link_config, description)
33 Link.MACAddressPolicy, config_parse_mac_policy, 0, offsetof(link_config, mac_policy)
34 Link.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, mac)
35 Link.NamePolicy, config_parse_name_policy, 0, offsetof(link_config, name_policy)
36 Link.Name, config_parse_ifname, 0, offsetof(link_config, name)
37 Link.Alias, config_parse_ifalias, 0, offsetof(link_config, alias)
38 Link.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(link_config, mtu)
39 Link.BitsPerSecond, config_parse_si_size, 0, offsetof(link_config, speed)
40 Link.Duplex, config_parse_duplex, 0, offsetof(link_config, duplex)
41 Link.AutoNegotiation, config_parse_tristate, 0, offsetof(link_config, autonegotiation)
42 Link.WakeOnLan, config_parse_wol, 0, offsetof(link_config, wol)
43 Link.Port, config_parse_port, 0, offsetof(link_config, port)
44 Link.GenericSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GSO])
45 Link.TCPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_TSO])
46 Link.TCP6SegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_TSO6])
47 Link.UDPSegmentationOffload, config_parse_warn_compat, DISABLED_LEGACY, 0
48 Link.GenericReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GRO])
49 Link.LargeReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_LRO])
50 Link.RxChannels, config_parse_channel, 0, 0
51 Link.TxChannels, config_parse_channel, 0, 0
52 Link.OtherChannels, config_parse_channel, 0, 0
53 Link.CombinedChannels, config_parse_channel, 0, 0