Skip to content

Commit

Permalink
add problem hint
Browse files Browse the repository at this point in the history
Signed-off-by: h0nIg <h0nIg@users.noreply.github.com>
  • Loading branch information
h0nIg authored and squeed committed Oct 14, 2024
1 parent 24b0bf9 commit c52e02b
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 c52e02b

Please sign in to comment.