Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: h0nIg <h0nIg@users.noreply.github.com>
  • Loading branch information
h0nIg committed Oct 10, 2024
1 parent 63822d8 commit ffd2eef
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 ffd2eef

Please sign in to comment.