aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2016-10-20 13:48:29 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2016-10-20 13:48:29 +0000
commiteedb49598bb88c1e3f032a4b857211e48646fc10 (patch)
tree39c2a8cff56d2333eb1dd50db47111613777d471
parent7902c8dca8f098a5e4ac67eaf6d92da85387b603 (diff)
Notes
-rw-r--r--sys/net/if_loop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 4d7de10b3ca60..72b93e213be47 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -36,6 +36,7 @@
#include "opt_inet.h"
#include "opt_inet6.h"
+#include "opt_rss.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -224,6 +225,10 @@ 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)
bcopy(dst->sa_data, &af, sizeof(af));