Skip to content

Commit

Permalink
Never reduce MTU on PF
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 committed Dec 5, 2023
1 parent 3d29255 commit 27a3758
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 @@ -270,7 +270,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 27a3758

Please sign in to comment.