mirror of
https://github.com/moby/moby.git
synced 2026-07-21 23:12:13 +00:00
Since89470a7we ignore errors returned by `LinkSetMTU` when the MTU is greater than 1500 but lower than 65535 to let CentOS/RHEL 7 users set an MTU in that range (despite their kernel rejecting that value). We dropped support for those distros, so we can now remove this code and unconditionally error out if `LinkSetMTU` returns an error. Commit89470a7introduced two unit tests - these are kept, and both now have a proper GoDoc describing what they're testing. Signed-off-by: Albin Kerouanton <albinker@gmail.com>