macvlan: add bcqueuelen setting
This setting was introduced in Linux 5.11d4bff72c84
42f5642a40
Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
This commit is contained in:
parent
3653221fad
commit
bdb6814fe2
@ -41,6 +41,7 @@ type NetConf struct {
|
|||||||
MTU int `json:"mtu"`
|
MTU int `json:"mtu"`
|
||||||
Mac string `json:"mac,omitempty"`
|
Mac string `json:"mac,omitempty"`
|
||||||
LinkContNs bool `json:"linkInContainer,omitempty"`
|
LinkContNs bool `json:"linkInContainer,omitempty"`
|
||||||
|
BcQueueLen uint32 `json:"bcqueuelen,omitempty"`
|
||||||
|
|
||||||
RuntimeConfig struct {
|
RuntimeConfig struct {
|
||||||
Mac string `json:"mac,omitempty"`
|
Mac string `json:"mac,omitempty"`
|
||||||
@ -245,6 +246,8 @@ func createMacvlan(conf *NetConf, ifName string, netns ns.NetNS) (*current.Inter
|
|||||||
Mode: mode,
|
Mode: mode,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mv.BCQueueLen = conf.BcQueueLen
|
||||||
|
|
||||||
if conf.LinkContNs {
|
if conf.LinkContNs {
|
||||||
err = netns.Do(func(_ ns.NetNS) error {
|
err = netns.Do(func(_ ns.NetNS) error {
|
||||||
return netlink.LinkAdd(mv)
|
return netlink.LinkAdd(mv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user