summaryrefslogtreecommitdiffstats
path: root/sys/dev/e1000/if_igb.c
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2012-08-02 00:00:34 +0000
committersbruno <sbruno@FreeBSD.org>2012-08-02 00:00:34 +0000
commit9834adb4ca4a385ec256c84d5c067401eda8e3f0 (patch)
tree0dcc954fc88ddb4e6ac9a7ee3304a905d3725fbe /sys/dev/e1000/if_igb.c
parente5bd3e99adcf79f279e259ec91941baf9fe87742 (diff)
downloadFreeBSD-src-9834adb4ca4a385ec256c84d5c067401eda8e3f0.zip
FreeBSD-src-9834adb4ca4a385ec256c84d5c067401eda8e3f0.tar.gz
CPU_NEXT() already handles wrapping around to the beginning. Also, in a
system with sparse CPU IDs, you can have a valid CPU ID > mp_ncpus (e.g. if you have two CPUs 0 and 4, with mp_maxid == 4 and mp_ncpus == 2). Introduced at svn r235210 Submitted by: jhb@ Reviewed by: jfv@
Diffstat (limited to 'sys/dev/e1000/if_igb.c')
-rw-r--r--sys/dev/e1000/if_igb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c
index 26d0903..d81bf0c 100644
--- a/sys/dev/e1000/if_igb.c
+++ b/sys/dev/e1000/if_igb.c
@@ -2522,7 +2522,6 @@ igb_allocate_msix(struct adapter *adapter)
"Bound queue %d to cpu %d\n",
i,igb_last_bind_cpu);
igb_last_bind_cpu = CPU_NEXT(igb_last_bind_cpu);
- igb_last_bind_cpu = igb_last_bind_cpu % mp_ncpus;
}
#if __FreeBSD_version >= 800000
TASK_INIT(&que->txr->txq_task, 0, igb_deferred_mq_start,
OpenPOWER on IntegriCloud