Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2013 16:08:12 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: buf_ring in HEAD is racy
Message-ID:  <CAJ-Vmo=7DWgBFB=j2_qsFM3YwgO56LETjGXuAYaiaicMMqL19Q@mail.gmail.com>
In-Reply-To: <CAFMmRNyJpvZ0AewWr62w16=qKer%2BFNXUJJy0Qc=EBqMnUV3OyQ@mail.gmail.com>
References:  <CAFMmRNyJpvZ0AewWr62w16=qKer%2BFNXUJJy0Qc=EBqMnUV3OyQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Also, I think it's a good idea to get a bullet-proof bufring
implementation that uses atomics rather than mutexes. We really want
there to be a cheap way to insert things into the queue.

Honestly, we could just do with a generic multi-writer, single-reader
ring type that we can re-use for other things, rather than just mbufs.
We could also have the code run in userland and do some very in-depth
stress testing of it there rather than needing it to be in the kernel.

Hm..


-adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=7DWgBFB=j2_qsFM3YwgO56LETjGXuAYaiaicMMqL19Q>