Skip to content

Commit

Permalink
add problem hint
Browse files Browse the repository at this point in the history
Signed-off-by: h0nIg <[email protected]>
  • Loading branch information
h0nIg committed Oct 11, 2024
1 parent ba41c3b commit 0237bd1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/meta/bandwidth/ifb_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ import (
const latencyInMillis = 25

func CreateIfb(ifbDeviceName string, mtu int) error {
// do not set TxQLen > 0 nor TxQLen == -1 until issues have been fixed with numrxqueues / numtxqueues across interfaces
// which needs to get set on IFB devices via upstream library: see hint https://github.com/containernetworking/plugins/pull/1097
err := netlink.LinkAdd(&netlink.Ifb{
LinkAttrs: netlink.LinkAttrs{
Name: ifbDeviceName,
Flags: net.FlagUp,
MTU: mtu,
Name: ifbDeviceName,
Flags: net.FlagUp,
MTU: mtu,
TxQLen: 0,
},
})
if err != nil {
Expand Down

0 comments on commit 0237bd1

Please sign in to comment.