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
@ -43,11 +43,12 @@ func parseNetConf(bytes []byte) (*types.NetConf, error) {
|
||||
func createDummy(ifName string, netns ns.NetNS) (*current.Interface, error) {
|
||||
dummy := ¤t.Interface{}
|
||||
|
||||
linkAttrs := netlink.NewLinkAttrs()
|
||||
linkAttrs.Name = ifName
|
||||
linkAttrs.Namespace = netlink.NsFd(int(netns.Fd()))
|
||||
|
||||
dm := &netlink.Dummy{
|
||||
LinkAttrs: netlink.LinkAttrs{
|
||||
Name: ifName,
|
||||
Namespace: netlink.NsFd(int(netns.Fd())),
|
||||
},
|
||||
LinkAttrs: linkAttrs,
|
||||
}
|
||||
|
||||
if err := netlink.LinkAdd(dm); err != nil {
|
||||
|
Reference in New Issue
Block a user