From nobody Sun Feb 27 12:59:47 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9F25D19E7C44 for ; Sun, 27 Feb 2022 13:00:01 +0000 (UTC) (envelope-from SRS0=pR75P5=TK=codenetworks.net=sm@eigbox.net) Received: from bosmailout08.eigbox.net (bosmailout08.eigbox.net [66.96.185.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4K63Wh6SqCz3mnZ for ; Sun, 27 Feb 2022 13:00:00 +0000 (UTC) (envelope-from SRS0=pR75P5=TK=codenetworks.net=sm@eigbox.net) Received: from bosmailscan04.eigbox.net ([10.20.15.4]) by bosmailout08.eigbox.net with esmtp (Exim) id 1nOJ9W-0005sj-0A for freebsd-net@freebsd.org; Sun, 27 Feb 2022 07:59:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codenetworks.net; s=dkim; h=Sender:Subject:From:To:MIME-Version:Date: Message-ID:Content-Type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LZLCrwdjvLI7J7bYIEWWPNo33LELj02UYnO1ZR2EjfQ=; b=VJnVxb2RluiGQe6KS/VWjbqrx3 vDj1LJQmP6IE+O9UNDSiySBkHAhR4kpcCmpeQhHV20zrFgK3lUo8OAcTQJ4eElRYc/Gx3j5xj7c1W CHhHCzev6BGbWL7xPRWjSd3QScMO7MJrEA++8zXFSDyqe13N1T+5VusmO6rUXBtPts6gaYsf8oUI0 fQySneXyTvxX1UrPekfOlhFQglh7vJeYHY1DS4rY5J9f1lptcN3BzC/U0WN0HNqgb8E+CaawE0k0d 4tJegiicbCD2Azq+Rl9f+5Z9dNXj0nMbMO+rurC2W91cxLlyVTkyqkB3958hl4U++f5bYcYW1aBZr Oj+gNK9Q==; Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan04.eigbox.net with esmtp (Exim) id 1nOJ9V-0001ZM-Lk for freebsd-net@freebsd.org; Sun, 27 Feb 2022 07:59:53 -0500 Received: from bosauthsmtp05.yourhostingaccount.com ([10.20.18.5]) by bosimpout12 with id 0Czq2700406Zqne01CzteQ; Sun, 27 Feb 2022 07:59:53 -0500 X-Authority-Analysis: v=2.3 cv=d4VuNSrE c=1 sm=1 tr=0 a=eBvjjtMVdWwtQGedh7GyLg==:117 a=Ek/qOh1uPkKSHvd30yk7rg==:17 a=oGFeUVbbRNcA:10 a=-Yl_685HdVUA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=nUkzOYxLKDHwS5Ev7W4A:9 a=QEXdDO2ut3YA:10 a=PGcZ4nSB0D7tJ2S8tuoA:9 a=pf9zlIe6_adxNVCB:21 a=_W_S_7VecoQA:10 Received: from cm-81-9-194-73.telecable.es ([81.9.194.73]:26928 helo=[192.168.1.100]) by bosauthsmtp05.eigbox.net with esmtpa (Exim) id 1nOJ9R-0007tY-VD for freebsd-net@freebsd.org; Sun, 27 Feb 2022 07:59:50 -0500 Content-Type: multipart/alternative; boundary="------------4oN4QkJ1n9U9on4tya5UZ63n" Message-ID: <5a7afbfc-586e-710d-f3af-c3ab92f1ae4e@codenetworks.net> Date: Sun, 27 Feb 2022 13:59:47 +0100 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-US To: "freebsd-net@freebsd.org" From: Santiago Martinez Subject: Current with RSS and EPAIR and without INET6. X-EN-UserInfo: d3bdfab0736480cedf04ed92aaea2ef5:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: sm@codenetworks.net X-EN-OrigIP: 81.9.194.73 X-EN-OrigHost: cm-81-9-194-73.telecable.es X-Rspamd-Queue-Id: 4K63Wh6SqCz3mnZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=codenetworks.net header.s=dkim header.b=VJnVxb2R; dmarc=none; spf=pass (mx1.freebsd.org: domain of "SRS0=pR75P5=TK=codenetworks.net=sm@eigbox.net" designates 66.96.185.8 as permitted sender) smtp.mailfrom="SRS0=pR75P5=TK=codenetworks.net=sm@eigbox.net" X-Spamd-Result: default: False [-2.81 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-0.81)[-0.812]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.96.128.0/18]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[codenetworks.net: no valid DMARC record]; NEURAL_HAM_LONG(-1.00)[-0.999]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[codenetworks.net:~]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[66.96.185.8:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net]; FORGED_SENDER(0.30)[sm@codenetworks.net,SRS0=pR75P5=TK=codenetworks.net=sm@eigbox.net]; R_DKIM_PERMFAIL(0.00)[codenetworks.net:s=dkim]; RECEIVED_SPAMHAUS_PBL(0.00)[81.9.194.73:received]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29873, ipnet:66.96.128.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[sm@codenetworks.net,SRS0=pR75P5=TK=codenetworks.net=sm@eigbox.net]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------4oN4QkJ1n9U9on4tya5UZ63n Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Everyone, While testing RSS and EPAIR I have find out that it is required to have kernel compiled with INET6 when enabling RSS+EPAIR. I usually remove everything that i do not use from the kernel, like SCTP and INET6, etc. After compiling with "option RSS" i noticed that iocage failed to start, checking the dmesg buffer clearly showed why. [321] link_elf_obj: symbol rss_soft_m2cpuid_v6 undefined [321] linker_load_file: /boot/kernel/if_epair.ko - unsupported file type I added two ifdef INET6 on the if_epair and solve the issue, still not sure if completely correct. Best regards. Santi diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c index 629de981d5b0..235e5098ebd8 100644 --- a/sys/net/if_epair.c +++ b/sys/net/if_epair.c @@ -74,6 +74,8 @@__FBSDID("$FreeBSD$"); #ifdef RSS #include #include +#endif +#ifdef INET6 #include #endif #include @@ -220,9 +222,11 @@epair_menq(struct mbuf *m, struct epair_softc *osc)                case ETHERTYPE_IP:                        rss_soft_m2cpuid_v4(m, 0, &bucket);                        break; +#ifdef INET6                case ETHERTYPE_IPV6:                        rss_soft_m2cpuid_v6(m, 0, &bucket);                        break; +#endif                default:                        bucket = 0;                        break; --------------4oN4QkJ1n9U9on4tya5UZ63n Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Everyone,

While testing RSS and EPAIR I have find out that it is required to have kernel compiled with INET6 when enabling RSS+EPAIR.

I usually remove everything that i do not use from the kernel, like SCTP and INET6, etc.

After compiling with "option RSS" i noticed that iocage failed to start, checking the dmesg buffer clearly showed why.

[321] link_elf_obj: symbol rss_soft_m2cpuid_v6 undefined
[321] linker_load_file: /boot/kernel/if_epair.ko - unsupported file type

I added two ifdef INET6 on the if_epair and solve the issue, still not sure if completely correct.

Best regards.

Santi

diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c
index 629de981d5b0..235e5098ebd8 100644
--- a/sys/net/if_epair.c
+++ b/sys/net/if_epair.c
@@ -74,6 +74,8 @@ __FBSDID("$FreeBSD$");
#ifdef RSS
#include <net/rss_config.h>
#include <netinet/in_rss.h>
+#endif
+#ifdef INET6
#include <netinet6/in6_rss.h>
#endif
#include <net/vnet.h>
@@ -220,9 +222,11 @@ epair_menq(struct mbuf *m, struct epair_softc *osc)
               case ETHERTYPE_IP:
                       rss_soft_m2cpuid_v4(m, 0, &bucket);
                       break;
+#ifdef INET6
               case ETHERTYPE_IPV6:
                       rss_soft_m2cpuid_v6(m, 0, &bucket);
                       break;
+#endif
               default:
                       bucket = 0;
                       break;





--------------4oN4QkJ1n9U9on4tya5UZ63n--