No subject

Adrian Chadd adrian at freebsd.org
Thu Jan 30 15:18:29 UTC 2014


Hi,

I'd like to disable the code in flowtable.c that assigns the mbuf flowid.

I'd like to ensure that any mbuf flowid that's set is (eventually)
going to be consistently toeplitz in the future (to match what NICs
are doing on the RX side) and this may cause the flowid to be set to
something completely different.

I've only done some light production testing with this so far, to no
visible ill effects.

What do people think?

Thanks,


-a


Index: sys/net/flowtable.c
===================================================================
--- sys/net/flowtable.c (revision 261001)
+++ sys/net/flowtable.c (working copy)
@@ -1102,10 +1102,12 @@
  if (af == AF_INET6)
  fle = flowtable_lookup_mbuf6(ft, m);
 #endif
+#if 0
  if (fle != NULL && m != NULL && (m->m_flags & M_FLOWID) == 0) {
  m->m_flags |= M_FLOWID;
  m->m_pkthdr.flowid = fle->f_fhash;
  }
+#endif
  return (fle);
 }


More information about the freebsd-net mailing list