Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173716950
D23726.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23726.diff
View Options
Index: head/sys/netinet/tcp_hpts.c
===================================================================
--- head/sys/netinet/tcp_hpts.c
+++ head/sys/netinet/tcp_hpts.c
@@ -28,7 +28,9 @@
#include "opt_inet.h"
#include "opt_inet6.h"
+#include "opt_rss.h"
#include "opt_tcpdebug.h"
+
/**
* Some notes about usage.
*
@@ -151,6 +153,11 @@
#include <net/route.h>
#include <net/vnet.h>
+#ifdef RSS
+#include <net/netisr.h>
+#include <net/rss_config.h>
+#endif
+
#define TCPSTATES /* for logging */
#include <netinet/in.h>
@@ -180,7 +187,6 @@
#include <netinet/tcp_offload.h>
#endif
-#include "opt_rss.h"
MALLOC_DEFINE(M_TCPHPTS, "tcp_hpts", "TCP hpts");
#ifdef RSS
@@ -1151,9 +1157,10 @@
}
static uint16_t
-hpts_cpuid(struct inpcb *inp){
+hpts_cpuid(struct inpcb *inp)
+{
u_int cpuid;
-#ifdef NUMA
+#if !defined(RSS) && defined(NUMA)
struct hpts_domain_info *di;
#endif
@@ -1167,7 +1174,7 @@
return (inp->inp_hpts_cpu);
}
/* If one is set the other must be the same */
-#ifdef RSS
+#ifdef RSS
cpuid = rss_hash2cpuid(inp->inp_flowid, inp->inp_flowtype);
if (cpuid == NETISR_CPUID_NONE)
return (hpts_random_cpu(inp));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 28, 10:17 PM (2 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39838109
Default Alt Text
D23726.diff (1 KB)
Attached To
Mode
D23726: Make RSS kernels compile again
Attached
Detach File
Event Timeline
Log In to Comment