Non-interrupt packet sending and receiving

Sean Fagan sef at ixsystems.com
Tue Mar 25 19:33:44 UTC 2014


On Mar 25, 2014, at 12:15 PM, Ryan Stone <rysto32 at gmail.com> wrote:

> You might want to take a look at the projects/sv branch, which
> implement kernel core dumps over the network.  We had to solve a
> similar problem there (in lem, em, igb and ixgbe) and ended up
> piggybacking on most of the DEVICE_POLLING code to do it.  The work
> ended up stalling over objections over calling into the mbuf allocator
> (which I guess may be a stumbling block for your work).  Unfortunately
> we weren't able to come up with a clean way to share the existing
> rx/tx paths in the drivers while separating the mbuf allocations out.

I checked the XNU drivers I could find online, and it turns out that they
did mbuf allocations.  Since I was using that as my model, I went
with it for now.

I was aware of the network core dump work, but not until I'd started to make
some progress with this.  (The kdp protocol theoretically has support for
dumping a core over the network, but I haven't implemented that at all.)
Looking at if_lem.c, it appears similar to a large degree.  Perhaps I should
start from scratch...

Sean.



More information about the freebsd-net mailing list