aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_hpts.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2018-09-06 16:11:24 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2018-09-06 16:11:24 +0000
commit6d2b0c0166a9034d1c4624586fbf46d48a7996da (patch)
tree27d1b0703711379446109c23e8d14016ea0a306a /sys/netinet/tcp_hpts.c
parent2d7bc6b39b7d1dda5394cead2350c639f7f35be8 (diff)
Make tcp_hpts.c compile a LINT kernel with options RSS and PCBGROUPS added by
adding the missing include files and changing a the type of cpuid which would otherwise cause a false comparison with NETISR_CPUID_NONE. Reviewed by: rrs Approved by: re (marius) Differential Revision: https://reviews.freebsd.org/D16891
Notes
Notes: svn path=/head/; revision=338498
Diffstat (limited to 'sys/netinet/tcp_hpts.c')
-rw-r--r--sys/netinet/tcp_hpts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c
index 7c4ad009d73d..32047180f883 100644
--- a/sys/netinet/tcp_hpts.c
+++ b/sys/netinet/tcp_hpts.c
@@ -167,6 +167,8 @@ __FBSDID("$FreeBSD$");
MALLOC_DEFINE(M_TCPHPTS, "tcp_hpts", "TCP hpts");
#ifdef RSS
+#include <net/netisr.h>
+#include <net/rss_config.h>
static int tcp_bind_threads = 1;
#else
static int tcp_bind_threads = 0;
@@ -1076,7 +1078,7 @@ hpts_random_cpu(struct inpcb *inp){
static uint16_t
hpts_cpuid(struct inpcb *inp){
- uint16_t cpuid;
+ u_int cpuid;
/*