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
@ -48,11 +48,11 @@ func createVRF(name string, tableID uint32) (*netlink.Vrf, error) {
|
||||
}
|
||||
}
|
||||
|
||||
linkAttrs := netlink.NewLinkAttrs()
|
||||
linkAttrs.Name = name
|
||||
vrf := &netlink.Vrf{
|
||||
LinkAttrs: netlink.LinkAttrs{
|
||||
Name: name,
|
||||
},
|
||||
Table: tableID,
|
||||
LinkAttrs: linkAttrs,
|
||||
Table: tableID,
|
||||
}
|
||||
|
||||
err = netlink.LinkAdd(vrf)
|
||||
|
Reference in New Issue
Block a user