Commit fbb5036
committed
net: icmp: fix warn on allocating net_buf
net_buf_alloc_len will hard set timeout to 0 when
it is in sys workq thread and print warning log.
send_icmpv4_echo_request and send_icmpv6_echo_request
are both allocating net_buf with timeout PKT_WAIT_TIME 1s.
This will cause warning log in every icmp send and
actual timeout is 0.
So fix it by always setting it to 0.
Signed-off-by: Fengming Ye <[email protected]>1 parent c50777a commit fbb5036
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | | - | |
| 141 | + | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
| |||
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
264 | | - | |
| 262 | + | |
265 | 263 | | |
266 | 264 | | |
267 | 265 | | |
| |||
0 commit comments