hpts_cpuid(struct inpcb *inp, int *failed)
{
u_int cpuid;
-#if !defined(RSS) && defined(NUMA)
+#ifdef NUMA
struct hpts_domain_info *di;
#endif
return (hpts_random_cpu(inp));
else
return (cpuid);
-#else
+#endif
/*
* We don't have a flowid -> cpuid mapping, so cheat and just map
* unknown cpuids to curcpu. Not the best, but apparently better
cpuid = inp->inp_flowid % mp_ncpus;
counter_u64_add(cpu_uses_flowid, 1);
return (cpuid);
-#endif
}
static void
{
u_int cpuid;
-#ifdef RSS
if (per_cpu_timers) {
+#ifdef RSS
cpuid = rss_hash2cpuid(inp->inp_flowid, inp->inp_flowtype);
if (cpuid == NETISR_CPUID_NONE)
return (curcpu); /* XXX */
else
return (cpuid);
- }
-#else
- /* Legacy, pre-RSS behaviour */
- if (per_cpu_timers) {
+#endif
/*
* We don't have a flowid -> cpuid mapping, so cheat and
* just map unknown cpuids to curcpu. Not the best, but
if (! CPU_ABSENT(cpuid))
return (cpuid);
return (curcpu);
- }
-#endif
- /* Default for RSS and non-RSS - cpuid 0 */
- else {
+ } else {
return (0);
}
}