Skip to content

Commit 720b1e9

Browse files
authored
Merge pull request #1074 from champtar/macvlan-bcqueuelen
macvlan: add bcqueuelen setting
2 parents 3653221 + bdb6814 commit 720b1e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/main/macvlan/macvlan.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type NetConf struct {
4141
MTU int `json:"mtu"`
4242
Mac string `json:"mac,omitempty"`
4343
LinkContNs bool `json:"linkInContainer,omitempty"`
44+
BcQueueLen uint32 `json:"bcqueuelen,omitempty"`
4445

4546
RuntimeConfig struct {
4647
Mac string `json:"mac,omitempty"`
@@ -245,6 +246,8 @@ func createMacvlan(conf *NetConf, ifName string, netns ns.NetNS) (*current.Inter
245246
Mode: mode,
246247
}
247248

249+
mv.BCQueueLen = conf.BcQueueLen
250+
248251
if conf.LinkContNs {
249252
err = netns.Do(func(_ ns.NetNS) error {
250253
return netlink.LinkAdd(mv)

0 commit comments

Comments
 (0)