moby/libnetwork/drivers
Albin Kerouanton 7a659049b8 libnet: bridge: ignore EINVAL when configuring bridge MTU
Since 964ab7158c, we explicitly set the bridge MTU if it was specified.
Unfortunately, kernel <v4.17 have a check preventing us to manually set
the MTU to anything greater than 1500 if no links is attached to the
bridge, which is how we do things -- create the bridge, set its MTU and
later on, attach veths to it.

Relevant kernel commit: 804b854d37

As we still have to support CentOS/RHEL 7 (and their old v3.10 kernels)
for a few more months, we need to ignore EINVAL if the MTU is > 1500
(but <= 65535).

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
(cherry picked from commit 89470a7114)
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
2024-02-02 19:51:11 +01:00
..
bridge libnet: bridge: ignore EINVAL when configuring bridge MTU 2024-02-02 19:51:11 +01:00
host libnetwork: move datastore Scope consts to libnetwork/scope 2023-07-28 21:56:48 +02:00
ipvlan libnetwork/datastore: drop (KVObject).DataScope() 2023-10-19 12:38:39 -04:00
macvlan libnetwork/datastore: drop (KVObject).DataScope() 2023-10-19 12:38:39 -04:00
null libnetwork: move datastore Scope consts to libnetwork/scope 2023-07-28 21:56:48 +02:00
overlay add //go:build directives to prevent downgrading to go1.16 language 2023-12-15 15:24:15 +01:00
remote migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
windows libnetwork/datastore: drop (KVObject).DataScope() 2023-10-19 12:38:39 -04:00