Fix txqueuelen being accidentally set to zero
TxQLen was unintentionally set to 0 due to a struct literal. Signed-off-by: Gudmundur Bjarni Olafsson <gudmundur.bjarni@gmail.com>
This commit is contained in:

committed by
Casey Callendrello

parent
c11ed48733
commit
3a49cff1f6
@ -137,10 +137,9 @@ func createTapWithIptool(tmpName string, mtu int, multiqueue bool, mac string, o
|
||||
}
|
||||
|
||||
func createLinkWithNetlink(tmpName string, mtu int, nsFd int, multiqueue bool, mac string, owner *uint32, group *uint32) error {
|
||||
linkAttrs := netlink.LinkAttrs{
|
||||
Name: tmpName,
|
||||
Namespace: netlink.NsFd(nsFd),
|
||||
}
|
||||
linkAttrs := netlink.NewLinkAttrs()
|
||||
linkAttrs.Name = tmpName
|
||||
linkAttrs.Namespace = netlink.NsFd(nsFd)
|
||||
if mtu != 0 {
|
||||
linkAttrs.MTU = mtu
|
||||
}
|
||||
|
Reference in New Issue
Block a user