Merge pull request #1074 from champtar/macvlan-bcqueuelen
macvlan: add bcqueuelen setting
This commit is contained in:
commit
720b1e9811
@ -41,6 +41,7 @@ type NetConf struct {
|
||||
MTU int `json:"mtu"`
|
||||
Mac string `json:"mac,omitempty"`
|
||||
LinkContNs bool `json:"linkInContainer,omitempty"`
|
||||
BcQueueLen uint32 `json:"bcqueuelen,omitempty"`
|
||||
|
||||
RuntimeConfig struct {
|
||||
Mac string `json:"mac,omitempty"`
|
||||
@ -245,6 +246,8 @@ func createMacvlan(conf *NetConf, ifName string, netns ns.NetNS) (*current.Inter
|
||||
Mode: mode,
|
||||
}
|
||||
|
||||
mv.BCQueueLen = conf.BcQueueLen
|
||||
|
||||
if conf.LinkContNs {
|
||||
err = netns.Do(func(_ ns.NetNS) error {
|
||||
return netlink.LinkAdd(mv)
|
||||
|
Loading…
x
Reference in New Issue
Block a user