Date: Thu, 6 Sep 2018 16:11:24 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338498 - head/sys/netinet Message-ID: <201809061611.w86GBOaD062573@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809061611.w86GBOaD062573>