* ether_poll is called from the idle loop. */
| 334 | * ether_poll is called from the idle loop. |
| 335 | */ |
| 336 | static void |
| 337 | ether_poll(int count) |
| 338 | { |
| 339 | struct epoch_tracker et; |
| 340 | int i; |
| 341 | |
| 342 | mtx_lock(&poll_mtx); |
| 343 | |
| 344 | if (count > poll_each_burst) |
| 345 | count = poll_each_burst; |
| 346 | |
| 347 | NET_EPOCH_ENTER(et); |
| 348 | for (i = 0 ; i < poll_handlers ; i++) |
| 349 | pr[i].handler(pr[i].ifp, POLL_ONLY, count); |
| 350 | NET_EPOCH_EXIT(et); |
| 351 | |
| 352 | mtx_unlock(&poll_mtx); |
| 353 | } |
| 354 | |
| 355 | /* |
| 356 | * netisr_pollmore is called after other netisr's, possibly scheduling |
no test coverage detected