diff options
| author | Qing Li <qingli@FreeBSD.org> | 2009-10-28 21:43:16 +0000 |
|---|---|---|
| committer | Qing Li <qingli@FreeBSD.org> | 2009-10-28 21:43:16 +0000 |
| commit | 54b7653bd533aa4775854bdcf45816a292228eaa (patch) | |
| tree | ce4071b95d73ce9ebeb3e75b3a35f867abfc3019 | |
| parent | dce196cf9c1f16b12dc7abff9575b3be2d40d495 (diff) | |
Notes
| -rw-r--r-- | sys/net/flowtable.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/net/flowtable.c b/sys/net/flowtable.c index 31c2acc19a9f..3ed0528dd280 100644 --- a/sys/net/flowtable.c +++ b/sys/net/flowtable.c @@ -963,15 +963,19 @@ flowtable_clean_vnet(void) if (CPU_ABSENT(i)) continue; - thread_lock(curthread); - sched_bind(curthread, i); - thread_unlock(curthread); + if (smp_started == 1) { + thread_lock(curthread); + sched_bind(curthread, i); + thread_unlock(curthread); + } flowtable_free_stale(ft, NULL); - thread_lock(curthread); - sched_unbind(curthread); - thread_unlock(curthread); + if (smp_started == 1) { + thread_lock(curthread); + sched_unbind(curthread); + thread_unlock(curthread); + } } } else { flowtable_free_stale(ft, NULL); |
