]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
iavf(4): Include RSS header file when RSS is defined
authorEric Joyner <erj@FreeBSD.org>
Fri, 3 Dec 2021 20:02:42 +0000 (12:02 -0800)
committerEric Joyner <erj@FreeBSD.org>
Tue, 8 Mar 2022 00:00:31 +0000 (16:00 -0800)
This should unbreak the kernel build when "options RSS" is
defined in the kernel configuration, and make the feature work.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
Reported by: adrian@
Sponsored by: Intel Corporation

(cherry picked from commit 5577aa338a675f2a465a58356894fbe24ba20407)

sys/dev/iavf/iavf_lib.h

index e49af93c222878e7c15ff09a775f70ab8627a350..b57299a4eaa6f9dea8780c1104523c30ad6e10c1 100644 (file)
@@ -43,6 +43,9 @@
 #include <sys/malloc.h>
 #include <machine/stdarg.h>
 #include <sys/sysctl.h>
+#ifdef RSS
+#include <net/rss_config.h>
+#endif
 
 #include "iavf_debug.h"
 #include "iavf_osdep.h"