Page MenuHomeFreeBSD

D31583.id93817.diff
No OneTemporary

D31583.id93817.diff

Index: sys/netinet/tcp_hpts.c
===================================================================
--- sys/netinet/tcp_hpts.c
+++ sys/netinet/tcp_hpts.c
@@ -1165,7 +1165,7 @@
hpts_cpuid(struct inpcb *inp, int *failed)
{
u_int cpuid;
-#if !defined(RSS) && defined(NUMA)
+#ifdef NUMA
struct hpts_domain_info *di;
#endif
@@ -1197,7 +1197,7 @@
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
@@ -1220,7 +1220,6 @@
cpuid = inp->inp_flowid % mp_ncpus;
counter_u64_add(cpu_uses_flowid, 1);
return (cpuid);
-#endif
}
static void
Index: sys/netinet/tcp_timer.c
===================================================================
--- sys/netinet/tcp_timer.c
+++ sys/netinet/tcp_timer.c
@@ -210,17 +210,14 @@
{
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
@@ -230,10 +227,7 @@
if (! CPU_ABSENT(cpuid))
return (cpuid);
return (curcpu);
- }
-#endif
- /* Default for RSS and non-RSS - cpuid 0 */
- else {
+ } else {
return (0);
}
}

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 11, 12:20 AM (18 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17087372
Default Alt Text
D31583.id93817.diff (1 KB)

Event Timeline