network: Allow IFF_VNET_HDR to also be set for tun devices

f5f07dbf06 adds VnetHeader= for tap
devices, but the flag is also used for tun devices.
This adds VnetHeader= setting in [Tun] section.
This commit is contained in:
Yu Watanabe 2019-05-20 13:27:20 +09:00
parent 077f9abc3a
commit 75eed300a9
3 changed files with 3 additions and 1 deletions

View file

@ -1408,7 +1408,7 @@
<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

View 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)

View file

@ -161,6 +161,7 @@ Flags=
OneQueue=
MultiQueue=
PacketInfo=
VNetHeader=
Group=
User=
[NetDev]