git: f877ace81633 - main - if_gre(4): Cleanup unused RSS macros
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Oct 2026 15:11:07 UTC
The branch main has been updated by pouria:
URL: https://cgit.FreeBSD.org/src/commit/?id=f877ace81633822f66c2b1300040ea15ca063b8d
commit f877ace81633822f66c2b1300040ea15ca063b8d
Author: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
AuthorDate: 2026-10-09 21:34:27 +0000
Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-10-10 15:10:42 +0000
if_gre(4): Cleanup unused RSS macros
RSS hash calculations no longer depend on RSS macro.
Therefore, remove unused macros and its XOR fallback.
Reviewed by: adrian
Fixes: 9c55b2e8cd6b ("rss: Enable portions of RSS globally to ...")
Differential Revision: https://reviews.freebsd.org/D60556
---
sys/net/if_gre.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 4f97371148f0..cd0b911e6c6e 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -37,7 +37,6 @@
#include <sys/cdefs.h>
#include "opt_inet.h"
#include "opt_inet6.h"
-#include "opt_rss.h"
#include <sys/param.h>
#include <sys/jail.h>
@@ -73,19 +72,15 @@
#include <netinet/in_var.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
-#ifdef RSS
#include <netinet/in_rss.h>
#endif
-#endif
#ifdef INET6
#include <netinet/ip6.h>
#include <netinet6/in6_var.h>
#include <netinet6/ip6_var.h>
-#ifdef RSS
#include <netinet6/in6_rss.h>
#endif
-#endif
#include <netinet/ip_encap.h>
#include <netinet/udp.h>
@@ -894,26 +889,16 @@ gre_flowid(struct gre_softc *sc, struct mbuf *m, uint32_t af)
switch (af) {
#ifdef INET
case AF_INET:
-#ifdef RSS
flowid = rss_hash_ip4_2tuple(mtod(m, struct ip *)->ip_src,
mtod(m, struct ip *)->ip_dst);
break;
-#endif
- flowid = mtod(m, struct ip *)->ip_src.s_addr ^
- mtod(m, struct ip *)->ip_dst.s_addr;
- break;
#endif
#ifdef INET6
case AF_INET6:
-#ifdef RSS
flowid = rss_hash_ip6_2tuple(
&mtod(m, struct ip6_hdr *)->ip6_src,
&mtod(m, struct ip6_hdr *)->ip6_dst);
break;
-#endif
- flowid = mtod(m, struct ip6_hdr *)->ip6_src.s6_addr32[3] ^
- mtod(m, struct ip6_hdr *)->ip6_dst.s6_addr32[3];
- break;
#endif
default:
break;