Skip to content

Commit

Permalink
Merge pull request #489 from bn222/OCPBUGS-16906
Browse files Browse the repository at this point in the history
Never reduce MTU on PF
  • Loading branch information
adrianchiris authored Aug 22, 2023
2 parents ce73a4d + 1879609 commit 4dd75bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func configSriovDevice(iface *sriovnetworkv1.Interface, ifaceStatus *sriovnetwor
}
}
// set PF mtu
if iface.Mtu > 0 && iface.Mtu != ifaceStatus.Mtu {
if iface.Mtu > 0 && iface.Mtu > ifaceStatus.Mtu {
err = setNetdevMTU(iface.PciAddress, iface.Mtu)
if err != nil {
glog.Warningf("configSriovDevice(): fail to set mtu for PF %s: %v", iface.PciAddress, err)
Expand Down

0 comments on commit 4dd75bc

Please sign in to comment.