add problem hint

Signed-off-by: h0nIg <h0nIg@users.noreply.github.com>
This commit is contained in:
h0nIg 2024-10-11 13:27:16 +02:00 committed by Casey Callendrello
parent 24b0bf96af
commit c52e02bccf

View File

@ -27,11 +27,14 @@ import (
const latencyInMillis = 25 const latencyInMillis = 25
func CreateIfb(ifbDeviceName string, mtu int) error { 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{ err := netlink.LinkAdd(&netlink.Ifb{
LinkAttrs: netlink.LinkAttrs{ LinkAttrs: netlink.LinkAttrs{
Name: ifbDeviceName, Name: ifbDeviceName,
Flags: net.FlagUp, Flags: net.FlagUp,
MTU: mtu, MTU: mtu,
TxQLen: 0,
}, },
}) })
if err != nil { if err != nil {