]> git.proxmox.com Git - systemd.git/blame - src/udev/net/link-config-gperf.gperf
New upstream version 249~rc1
[systemd.git] / src / udev / net / link-config-gperf.gperf
CommitLineData
3a6ce677 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
60f067b4 2%{
52ad194e
MB
3#if __GNUC__ >= 7
4_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
5#endif
60f067b4
JS
6#include <stddef.h>
7#include "conf-parser.h"
60f067b4 8#include "ethtool-util.h"
b012e921 9#include "link-config.h"
3a6ce677 10#include "net-condition.h"
a032b68d 11#include "socket-util.h"
60f067b4
JS
12%}
13struct ConfigPerfItem;
14%null_strings
15%language=ANSI-C
16%define slot-name section_and_lvalue
17%define hash-function-name link_config_gperf_hash
18%define lookup-function-name link_config_gperf_lookup
19%readonly-tables
20%omit-struct-type
21%struct-type
22%includes
23%%
8b3d4ff0
MB
24Match.MACAddress, config_parse_hwaddrs, 0, offsetof(LinkConfig, match.mac)
25Match.PermanentMACAddress, config_parse_hwaddrs, 0, offsetof(LinkConfig, match.permanent_mac)
26Match.OriginalName, config_parse_match_ifnames, 0, offsetof(LinkConfig, match.ifname)
27Match.Path, config_parse_match_strv, 0, offsetof(LinkConfig, match.path)
28Match.Driver, config_parse_match_strv, 0, offsetof(LinkConfig, match.driver)
29Match.Type, config_parse_match_strv, 0, offsetof(LinkConfig, match.iftype)
30Match.Property, config_parse_match_property, 0, offsetof(LinkConfig, match.property)
31Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(LinkConfig, conditions)
32Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(LinkConfig, conditions)
33Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(LinkConfig, conditions)
34Match.KernelVersion, config_parse_net_condition, CONDITION_KERNEL_VERSION, offsetof(LinkConfig, conditions)
35Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(LinkConfig, conditions)
36Link.Description, config_parse_string, 0, offsetof(LinkConfig, description)
37Link.MACAddressPolicy, config_parse_mac_address_policy, 0, offsetof(LinkConfig, mac_address_policy)
38Link.MACAddress, config_parse_hwaddr, 0, offsetof(LinkConfig, mac)
39Link.NamePolicy, config_parse_name_policy, 0, offsetof(LinkConfig, name_policy)
40Link.Name, config_parse_ifname, 0, offsetof(LinkConfig, name)
41Link.AlternativeName, config_parse_ifnames, IFNAME_VALID_ALTERNATIVE, offsetof(LinkConfig, alternative_names)
42Link.AlternativeNamesPolicy, config_parse_alternative_names_policy, 0, offsetof(LinkConfig, alternative_names_policy)
43Link.Alias, config_parse_ifalias, 0, offsetof(LinkConfig, alias)
44Link.TransmitQueues, config_parse_rx_tx_queues, 0, offsetof(LinkConfig, txqueues)
45Link.ReceiveQueues, config_parse_rx_tx_queues, 0, offsetof(LinkConfig, rxqueues)
46Link.TransmitQueueLength, config_parse_txqueuelen, 0, offsetof(LinkConfig, txqueuelen)
47Link.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(LinkConfig, mtu)
48Link.BitsPerSecond, config_parse_si_uint64, 0, offsetof(LinkConfig, speed)
49Link.Duplex, config_parse_duplex, 0, offsetof(LinkConfig, duplex)
50Link.AutoNegotiation, config_parse_tristate, 0, offsetof(LinkConfig, autonegotiation)
51Link.WakeOnLan, config_parse_wol, 0, offsetof(LinkConfig, wol)
52Link.Port, config_parse_port, 0, offsetof(LinkConfig, port)
53Link.ReceiveChecksumOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_RX])
54Link.TransmitChecksumOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_TX])
55Link.GenericSegmentationOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_GSO])
56Link.TCPSegmentationOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_TSO])
57Link.TCP6SegmentationOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_TSO6])
3a6ce677 58Link.UDPSegmentationOffload, config_parse_warn_compat, DISABLED_LEGACY, 0
8b3d4ff0
MB
59Link.GenericReceiveOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_GRO])
60Link.LargeReceiveOffload, config_parse_tristate, 0, offsetof(LinkConfig, features[NET_DEV_FEAT_LRO])
61Link.RxChannels, config_parse_channel, 0, offsetof(LinkConfig, channels)
62Link.TxChannels, config_parse_channel, 0, offsetof(LinkConfig, channels)
63Link.OtherChannels, config_parse_channel, 0, offsetof(LinkConfig, channels)
64Link.CombinedChannels, config_parse_channel, 0, offsetof(LinkConfig, channels)
65Link.Advertise, config_parse_advertise, 0, offsetof(LinkConfig, advertise)
66Link.RxBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring)
67Link.RxMiniBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring)
68Link.RxJumboBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring)
69Link.TxBufferSize, config_parse_nic_buffer_size, 0, offsetof(LinkConfig, ring)
70Link.RxFlowControl, config_parse_tristate, 0, offsetof(LinkConfig, rx_flow_control)
71Link.TxFlowControl, config_parse_tristate, 0, offsetof(LinkConfig, tx_flow_control)
72Link.AutoNegotiationFlowControl, config_parse_tristate, 0, offsetof(LinkConfig, autoneg_flow_control)
73Link.GenericSegmentOffloadMaxBytes, config_parse_iec_size, 0, offsetof(LinkConfig, gso_max_size)
74Link.GenericSegmentOffloadMaxSegments, config_parse_uint32, 0, offsetof(LinkConfig, gso_max_segments)