Skip to content

Commit ca901db

Browse files
committed
net: ip: Use rate limited version
As this is the hot data path, use a rate limited warning variant. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent bc4d88c commit ca901db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/net/ip/net_if.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ static bool net_if_tx(struct net_if *iface, struct net_pkt *pkt)
262262
status = net_if_l2(iface)->send(iface, pkt);
263263
net_if_tx_unlock(iface);
264264
if (status < 0) {
265-
NET_WARN("iface %d pkt %p send failure status %d",
266-
net_if_get_by_iface(iface), pkt, status);
265+
NET_WARN_RATELIMITED("iface %d pkt %p send failure status %d",
266+
net_if_get_by_iface(iface), pkt, status);
267267
}
268268

269269
if (IS_ENABLED(CONFIG_NET_PKT_TXTIME_STATS) ||

0 commit comments

Comments
 (0)