aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Cui <cc@FreeBSD.org>2026-02-05 21:12:15 +0000
committerCheng Cui <cc@FreeBSD.org>2026-02-06 14:32:31 +0000
commitefcc0423d80e4048e11e997abc46bd0343537e1b (patch)
tree2c2c5d4b0fc7c55a5e64eac4d51368e7bb457f7a
parent94976733d35234c629fdb086036f2319c44eb08c (diff)
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
-rw-r--r--sys/dev/e1000/em_txrx.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}