mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-07 01:58:02 +03:00
network: allow to configure interface MTU for CAN devices
Previously, even if MTUBytes= is specified in matching .network file, the setting was ignored for CAN devices. (cherry picked from commit 941f8e1399bcbac54c9cc862a227e0e63cebc538) (cherry picked from commit 394da666e074218b597198347a8159b8b56c0029) (cherry picked from commit 389286196cd44cfc27def57d746fe745d6f79f6e) (cherry picked from commit f3cb3b9440ec5fd5da300c8ddfd49c1ab6378e68)
This commit is contained in:
parent
750016cd86
commit
7826d80ced
@ -1013,6 +1013,10 @@ static int link_configure(Link *link) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = link_configure_mtu(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (link->iftype == ARPHRD_CAN) {
|
||||
/* let's shortcut things for CAN which doesn't need most of what's done below. */
|
||||
r = link_request_to_set_can(link);
|
||||
@ -1046,10 +1050,6 @@ static int link_configure(Link *link) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = link_configure_mtu(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = link_request_to_set_addrgen_mode(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user