提交 9152e26d 编写于 作者: D dingtianhong 提交者: David S. Miller

bonding: ratelimit pr_err() for bond xmit broadcast

It may spam if the system is out of the memory, add ratelimit for it.
Signed-off-by: NDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 054bb880
...@@ -3656,8 +3656,8 @@ static int bond_xmit_broadcast(struct sk_buff *skb, struct net_device *bond_dev) ...@@ -3656,8 +3656,8 @@ static int bond_xmit_broadcast(struct sk_buff *skb, struct net_device *bond_dev)
struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC);
if (!skb2) { if (!skb2) {
pr_err("%s: Error: bond_xmit_broadcast(): skb_clone() failed\n", net_err_ratelimited("%s: Error: %s: skb_clone() failed\n",
bond_dev->name); bond_dev->name, __func__);
continue; continue;
} }
/* bond_dev_queue_xmit always returns 0 */ /* bond_dev_queue_xmit always returns 0 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册