]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: Allow IFF_VNET_HDR to also be set for tun devices
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 May 2019 04:27:20 +0000 (13:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 May 2019 08:58:46 +0000 (17:58 +0900)
f5f07dbf06f6df9d12e092c05ad8cfbe244d203f adds VnetHeader= for tap
devices, but the flag is also used for tun devices.
This adds VnetHeader= setting in [Tun] section.

man/systemd.netdev.xml
src/network/netdev/netdev-gperf.gperf
test/fuzz/fuzz-netdev-parser/directives.netdev

index c746ed31f82b25e5df2b507f81475657bf0e8ae0..4b26d9670b8984467987dde9458f28ebd4e50a6d 100644 (file)
       <varlistentry>
         <term><varname>VNetHeader=</varname></term>
         <listitem><para>Takes a boolean. Configures
-        IFF_VNET_HDR flag for a tap device. It allows sending
+        IFF_VNET_HDR flag for a tun or tap device. It allows sending
         and receiving larger Generic Segmentation Offload (GSO)
         packets. This may increase throughput significantly.
         Defaults to
index 6a6d9dc7520bcad9779c8dfcd1e8d50e8a841d16..1e1330d7e198891bf633be307c8b609576b57c80 100644 (file)
@@ -162,6 +162,7 @@ MACsecReceiveAssociation.Activate,        config_parse_macsec_sa_activate,
 Tun.OneQueue,                             config_parse_bool,                         0,                             offsetof(TunTap, one_queue)
 Tun.MultiQueue,                           config_parse_bool,                         0,                             offsetof(TunTap, multi_queue)
 Tun.PacketInfo,                           config_parse_bool,                         0,                             offsetof(TunTap, packet_info)
+Tun.VNetHeader,                           config_parse_bool,                         0,                             offsetof(TunTap, vnet_hdr)
 Tun.User,                                 config_parse_string,                       0,                             offsetof(TunTap, user_name)
 Tun.Group,                                config_parse_string,                       0,                             offsetof(TunTap, group_name)
 Tap.OneQueue,                             config_parse_bool,                         0,                             offsetof(TunTap, one_queue)
index d2e10c71bd1a92adedc6f82bbad892be0ac26043..be1b197024b5d46b70dfb7fd19c0e6858077c32a 100644 (file)
@@ -161,6 +161,7 @@ Flags=
 OneQueue=
 MultiQueue=
 PacketInfo=
+VNetHeader=
 Group=
 User=
 [NetDev]