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
This commit is contained in:
Bjoern A. Zeeb 2018-09-06 16:11:24 +00:00
parent 2d7bc6b39b
commit 6d2b0c0166
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338498

View File

@ -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;
/*