mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
network: Allow IFF_VNET_HDR to also be set for tun devices
f5f07dbf06f6df9d12e092c05ad8cfbe244d203f 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:
parent
077f9abc3a
commit
75eed300a9
@ -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
|
||||
|
@ -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)
|
||||
|
@ -161,6 +161,7 @@ Flags=
|
||||
OneQueue=
|
||||
MultiQueue=
|
||||
PacketInfo=
|
||||
VNetHeader=
|
||||
Group=
|
||||
User=
|
||||
[NetDev]
|
||||
|
Loading…
x
Reference in New Issue
Block a user