How to make netmap NS_FORWARD work with NR_REG_ONE_NIC?

Mark Delany c2h at romeo.emu.st
Mon Mar 24 17:19:47 UTC 2014


> > While good for performance, it unfortunately appears that NS_FORWARD
> > does not work in this mode - presumably because NR_REG_ONE_NIC doesn't
> > include the host ring.
> >
> 
> correct, this is not a supported mode at the moment.
> If you want to implement it you should do it into netmap_poll()
> and create another constant NS_REG_ONE_NIC_SW for the new mode.

Thanks for the clarification. Unfortunately I don't think my skills
are up to hacking features into the netmap module. Is my best
user-space alternative much as I described?

> > Do I have to register an independent handler with NR_REG_SW_NIC and
> > have the h/w ring handlers synchronize with it? If so, I also presume
> > the NR_REG_SW_NIC handler has to manage transfers in both directions,
> > yes?

Or is there a better way in user space?


Mark.


More information about the freebsd-net mailing list