(forgot cc before) Hi, Jim
thanks for reply this is my graduate design project my aim is to implement a simple software switch based on openflow using FreeBSD netmap as network I/O framework besides, I'm succeed doing on bridge.c at 2 interfaces add like /********************* Func: int main() rxring0 = NETMAP_RXRING((me+1)->nifp, (me+1)->begin); struct netmap_slot *rs0 = &rxring0->slot[rxring0->cur]; unsigned char *rxbuf0 = (unsigned char *)(NETMAP_BUF(rxring0, rs0->buf_idx)); *********************/ then process rxbuf0 before packet move but I need do at many interfaces, like vale-ctl does It's also hard to add interfaces on bridge.c, and from netmap introduces, I should use vale-ctl Jaye 2014-09-18 13:45 GMT+08:00 upyzl <zj262...@gmail.com>: > Hi, Jim > > thanks for reply > > this is my graduate design project > my aim is to implement a simple software switch based on openflow using > FreeBSD netmap as network I/O framework > > besides, I'm succeed doing on bridge.c at 2 interfaces > add like > /********************* Func: int main() > > rxring0 = NETMAP_RXRING((me+1)->nifp, (me+1)->begin); > struct netmap_slot *rs0 = &rxring0->slot[rxring0->cur]; > unsigned char *rxbuf0 = (unsigned char *)(NETMAP_BUF(rxring0, > rs0->buf_idx)); > > *********************/ > then process rxbuf0 before packet move > > but I need do at many interfaces, like vale-ctl does > It's also hard to add interfaces on bridge.c, and from netmap introduces, > I should use vale-ctl > > Jaye > > 2014-09-18 11:48 GMT+08:00 Jim Thompson <j...@netgate.com>: > >> Jaye, >> >> I’d really like to see this work happen. >> >> Let me know if I can help. >> >> Jim >> >> > On Sep 17, 2014, at 9:39 PM, upyzl <zj262...@gmail.com> wrote: >> > >> > Hi, >> > >> > I think it's right place to talk about FreeBSD 10 - netmap question >> > (location at FreeBSD 10: /usr/src/tools/tools/netmap ; with kernel >> device >> > netmap on) >> > >> > I'm (entry) study on openflow software switch based on netmap/vale >> > >> > It seems very simple in vale-ctl.c and hard to add features for packet >> > process (such as flow match and forward actions apply) >> > >> > Could anyone give me some advice? thanks. >> > >> > Best regards, >> > Jaye >> > _______________________________________________ >> > freebsd-net@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-net >> > To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org" >> >> > _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"