containernetworking / plugins

Some reference and example networking plugins, maintained by the CNI team.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature: allow configuration of num_queues for macvlan and ipvlan

cyclinder opened this issue · comments

allow configuration of num_queues for macvlan and ipvlan, it may enhance network performance.

	linkAttrs := netlink.LinkAttrs{
		MTU:         conf.MTU,
		Name:        tmpName,
		ParentIndex: m.Attrs().Index,
		Namespace:   netlink.NsFd(int(netns.Fd())),
		NumTxQueues: 20,   // numtxqueue
		NumRxQueues: 20,  // numrxqueue
	}