diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2024-01-09 19:00:46 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2024-01-09 19:00:46 +0000 |
| commit | 8cb9b68f5821e45c63ee08d8ee3029ca523ac174 (patch) | |
| tree | 8ee8e6b8324384b82ed02533a600698404373ce8 /sys/net | |
| parent | 76f405ed63540aa2d989c231f70277062e76ccfb (diff) | |
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/if_epair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c index 2fa016c8f35c..7bc218321f01 100644 --- a/sys/net/if_epair.c +++ b/sys/net/if_epair.c @@ -177,7 +177,7 @@ epair_tx_start_deferred(void *arg, int pending) * end up starving ourselves in a multi-epair routing configuration. */ mtx_lock(&q->mtx); - if (mbufq_len(&q->q) > 0) { + if (!mbufq_empty(&q->q)) { resched = true; q->state = EPAIR_QUEUE_WAKING; } else { |
