]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/udev/net/link-config-gperf.gperf
link : add support to configure LRO and GRO Offload features
[thirdparty/systemd.git] / src / udev / net / link-config-gperf.gperf
CommitLineData
af6f0d42
TG
1%{
2#include <stddef.h>
3#include "conf-parser.h"
c6f7c917 4#include "network-internal.h"
af6f0d42 5#include "link-config.h"
5fde13d7 6#include "ethtool-util.h"
af6f0d42
TG
7%}
8struct ConfigPerfItem;
9%null_strings
10%language=ANSI-C
11%define slot-name section_and_lvalue
12%define hash-function-name link_config_gperf_hash
13%define lookup-function-name link_config_gperf_lookup
14%readonly-tables
15%omit-struct-type
16%struct-type
17%includes
18%%
50725d10
SS
19Match.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, match_mac)
20Match.OriginalName, config_parse_ifnames, 0, offsetof(link_config, match_name)
21Match.Path, config_parse_strv, 0, offsetof(link_config, match_path)
22Match.Driver, config_parse_strv, 0, offsetof(link_config, match_driver)
23Match.Type, config_parse_strv, 0, offsetof(link_config, match_type)
24Match.Host, config_parse_net_condition, CONDITION_HOST, offsetof(link_config, match_host)
25Match.Virtualization, config_parse_net_condition, CONDITION_VIRTUALIZATION, offsetof(link_config, match_virt)
26Match.KernelCommandLine, config_parse_net_condition, CONDITION_KERNEL_COMMAND_LINE, offsetof(link_config, match_kernel)
27Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(link_config, match_arch)
28Link.Description, config_parse_string, 0, offsetof(link_config, description)
29Link.MACAddressPolicy, config_parse_mac_policy, 0, offsetof(link_config, mac_policy)
30Link.MACAddress, config_parse_hwaddr, 0, offsetof(link_config, mac)
31Link.NamePolicy, config_parse_name_policy, 0, offsetof(link_config, name_policy)
32Link.Name, config_parse_ifname, 0, offsetof(link_config, name)
33Link.Alias, config_parse_ifalias, 0, offsetof(link_config, alias)
34Link.MTUBytes, config_parse_iec_size, 0, offsetof(link_config, mtu)
35Link.BitsPerSecond, config_parse_si_size, 0, offsetof(link_config, speed)
36Link.Duplex, config_parse_duplex, 0, offsetof(link_config, duplex)
37Link.WakeOnLan, config_parse_wol, 0, offsetof(link_config, wol)
38Link.GenericSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GSO])
39Link.TCPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_TSO])
40Link.UDPSegmentationOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_UFO])
f7ea90fb
SS
41Link.GenericReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_GRO])
42Link.LargeReceiveOffload, config_parse_tristate, 0, offsetof(link_config, features[NET_DEV_FEAT_LRO])