Skip to content

Commit

Permalink
ipvlan: Avoid spammy dmesg info messages
Browse files Browse the repository at this point in the history
Avoid spamming the kernel log with below messages when creating ipvlan slave:

[Tue Oct 26 14:20:38 2021] cilium: renamed from tmp_svwpi
[Tue Oct 26 14:20:38 2021] cilium: Caught tx_queue_len zero misconfig
[Tue Oct 26 14:20:46 2021] cilium_host: Caught tx_queue_len zero misconfig
[Tue Oct 26 14:32:11 2021] eth0: renamed from tmp6fed1
[Tue Oct 26 14:32:11 2021] eth0: Caught tx_queue_len zero misconfig

@mukeshkwm reported similar issue on veth datapath, which also applies to ipvlan datapath.

Fixes: #17703
Signed-off-by: Chen Yaqi <chendotjs@gmail.com>
  • Loading branch information
chendotjs authored and pchaigno committed Nov 5, 2021
1 parent 832246b commit a4b5cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/datapath/connector/ipvlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func createIpvlanSlave(lxcIfName string, mtu, masterDev int, mode string, ep *mo
LinkAttrs: netlink.LinkAttrs{
Name: lxcIfName,
ParentIndex: masterDev,
TxQLen: 1000,
},
Mode: ipvlanMode,
}
Expand Down
1 change: 1 addition & 0 deletions pkg/datapath/loader/netlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func setupIpvlan(name string, nativeLink netlink.Link) (*netlink.IPVlan, error)
LinkAttrs: netlink.LinkAttrs{
Name: name,
ParentIndex: nativeLink.Attrs().Index,
TxQLen: 1000,
},
Mode: netlink.IPVLAN_MODE_L3,
}
Expand Down

0 comments on commit a4b5cfe

Please sign in to comment.