Red Hat Bugzilla – Bug 1494265
Dracut can not use jumbo frames for interfaces on a bond.
Last modified: 2018-04-10 14:11:42 EDT
Created attachment 1329216 [details] Adds MTU parameter to dracut bond= and configures the bond with the MTU. Description of problem: When configuring an interface on a bond to use jumbo frames in dracut, the interfaces are all set to 1500. Version-Release number of selected component (if applicable): 7.3, 7.4 How reproducible: Always Steps to Reproduce: 1. Add ip=10.4.64.21::10.4.64.1:255.255.192.0::br0.1000:none:9000 bond=bond0:eth0:mode=1 bridge=br0:bond0 vlan=br0.1000:br0 to the command line (may also need rd.neednet=1 if not booting over network). 2. Clear out /etc/sysconfig/network-scripts/ifcfg-* 3. Reboot Actual results: # ip link ... 4: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000 ... 11: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP mode DEFAULT group default qlen 1000 12: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 13: br0.1000@br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 Expected results: Add ip=10.4.64.21::10.4.64.1:255.255.192.0::br0.1000:none:9000 bond=bond0:eth0:mode=1:9000 bridge=br0:bond0 vlan=br0.1000:br0 to the command line ip link: ... 4: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000 ... 11: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 9000 qdisc noqueue master br0 state UP mode DEFAULT group default qlen 1000 12: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000 13: br0.1000@br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP mode DEFAULT group default qlen 1000 Additional info: Upstream dracut almost has it right with commit 292548be6ec8e701dab1a532ca072707e890b12e, but there is an error in ifup.sh where $netif should be $bondname. I submitted https://github.com/dracutdevs/dracut/pull/286 to fix that. I'm attaching a good patch that works correctly.
Patch looks good to me, let's just wait for the upstream review.
Upstream merged the patch.
https://github.com/dracutdevs/dracut/commit/50d75a50fbebf96fe2937352aa2ea10e467b7ebd https://github.com/dracutdevs/dracut/commit/50c3405ce0a62439708c51be949f275d2714d887
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0964