Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9152e26d authored by dingtianhong's avatar dingtianhong Committed by David S. Miller
Browse files

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: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 054bb880
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);

			if (!skb2) {
				pr_err("%s: Error: bond_xmit_broadcast(): skb_clone() failed\n",
				       bond_dev->name);
				net_err_ratelimited("%s: Error: %s: skb_clone() failed\n",
						    bond_dev->name, __func__);
				continue;
			}
			/* bond_dev_queue_xmit always returns 0 */