git: efcc0423d80e - main - em: remove M_HASHTYPE when RSS is not enabled
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Feb 2026 14:34:49 UTC
The branch main has been updated by cc:
URL: https://cgit.FreeBSD.org/src/commit/?id=efcc0423d80e4048e11e997abc46bd0343537e1b
commit efcc0423d80e4048e11e997abc46bd0343537e1b
Author: Cheng Cui <cc@FreeBSD.org>
AuthorDate: 2026-02-05 21:12:15 +0000
Commit: Cheng Cui <cc@FreeBSD.org>
CommitDate: 2026-02-06 14:32:31 +0000
em: remove M_HASHTYPE when RSS is not enabled
Summary:
Since "73fe85e486d2 tcp: store flowid info in syncache", inp_flowid can be set
if the incoming packet is not M_HASHTYPE_NONE. But this can introduce dummy
and duplicated flowid when a virtual interface set M_HASHTYPE_OPAQUE. This
change will let the upper layer know how to deal with software hash, with
benefits like inp_flowid can be set correctly and m_pkthdr.flowid can be set
correctly in output path.
This fix is similar to "20285cad7a55"
Reviewed by: kbowling
Differential Revision: https://reviews.freebsd.org/D55137
---
sys/dev/e1000/em_txrx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/e1000/em_txrx.c b/sys/dev/e1000/em_txrx.c
index 647255417b3e..b86222e363e9 100644
--- a/sys/dev/e1000/em_txrx.c
+++ b/sys/dev/e1000/em_txrx.c
@@ -836,6 +836,6 @@ em_determine_rsstype(uint32_t pkt_info)
case E1000_RXDADV_RSSTYPE_IPV6_TCP_EX:
return M_HASHTYPE_RSS_TCP_IPV6_EX;
default:
- return M_HASHTYPE_OPAQUE;
+ return M_HASHTYPE_NONE;
}
}