Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jan 2014 07:18:28 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        FreeBSD Net <freebsd-net@freebsd.org>,  "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Message-ID:  <CAJ-VmokSjj_7qCRL3juczq_XO8h9etOarsnasjfNg4upmkMX9Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokSjj_7qCRL3juczq_XO8h9etOarsnasjfNg4upmkMX9Q>