Skip to content

Commit

Permalink
fix tests
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 874cd28 commit 9975b5d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/meta/bandwidth/ifb_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ func CreateIfb(ifbDeviceName string, mtu int, _ int) error {
// if qlen < 1000 {
// qlen = 1000
// }
qlen := 0

linkAttrs := netlink.NewLinkAttrs()
linkAttrs.Name = ifbDeviceName
linkAttrs.Flags = net.FlagUp
linkAttrs.MTU = mtu
// linkAttrs.TxQLen = qlen

err := netlink.LinkAdd(&netlink.Ifb{
LinkAttrs: netlink.LinkAttrs{
Name: ifbDeviceName,
Flags: net.FlagUp,
MTU: mtu,
TxQLen: qlen,
},
LinkAttrs: linkAttrs,
})
if err != nil {
return fmt.Errorf("adding link: %s", err)
Expand Down

0 comments on commit 9975b5d

Please sign in to comment.