svn commit: r338498 - head/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Thu Sep 6 16:11:24 UTC 2018


Author: bz
Date: Thu Sep  6 16:11:24 2018
New Revision: 338498
URL: https://svnweb.freebsd.org/changeset/base/338498

Log:
  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

Modified:
  head/sys/netinet/tcp_hpts.c

Modified: head/sys/netinet/tcp_hpts.c
==============================================================================
--- head/sys/netinet/tcp_hpts.c	Thu Sep  6 14:55:54 2018	(r338497)
+++ head/sys/netinet/tcp_hpts.c	Thu Sep  6 16:11:24 2018	(r338498)
@@ -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;
 
 
 	/*


More information about the svn-src-head mailing list