loopback: Clear hash unconditionally.

Clear the RSS hash on transmit, now that RSS hashing is enabled
unconditionally, and the network stack may want to trust that
it is getting the correct hash on input.

Differential Revision:	https://reviews.freebsd.org/D53090
Reviewed by: zlei
Sponsored by: Netflix
This commit is contained in:
Andrew Gallatin
2025-11-24 10:36:32 -05:00
parent b0c7eaf83d
commit 2fe37927d4
-2
View File
@@ -219,9 +219,7 @@ looutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
if_inc_counter(ifp, IFCOUNTER_OBYTES, m->m_pkthdr.len);
#ifdef RSS
M_HASHTYPE_CLEAR(m);
#endif
/* BPF writes need to be handled specially. */
if (dst->sa_family == AF_UNSPEC || dst->sa_family == pseudo_AF_HDRCMPLT)