Skip to content

Commit

Permalink
fix: set qlen for ovn0
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Jul 17, 2020
1 parent a2d969e commit d1a184e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/daemon/ovs.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@ func configureNodeNic(portName, ip, gw string, macAddr net.HardwareAddr, mtu int
return err
}

hostLink, err := netlink.LinkByName(util.NodeNic)
if err != nil {
return fmt.Errorf("can not find nic %s %v", util.NodeNic, err)
}

if err = netlink.LinkSetTxQLen(hostLink, 1000); err != nil {
return fmt.Errorf("can not set host nic %s qlen %v", util.NodeNic, err)
}

// ping gw to activate the flow
var output []byte
if util.CheckProtocol(gw) == kubeovnv1.ProtocolIPv4 {
Expand Down

0 comments on commit d1a184e

Please sign in to comment.