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@
This commit is contained in:
parent
e5bd3e99ad
commit
9834adb4ca
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user