Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2014 14:17:09 +0800
From:      upyzl <zj262144@gmail.com>
To:        Jim Thompson <jim@netgate.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: [netmap/vale-ctl] when could process packet
Message-ID:  <CAMijcFHHae8Wv=AMNVi_OsdQSHNHBPXtMQ-Yh8wXWV0ZqJ9AAw@mail.gmail.com>
In-Reply-To: <CAMijcFGd9wh2WDwpMegwAaq8dycSEECZkqHAYGjsnV3AN5HgCg@mail.gmail.com>
References:  <CAMijcFEpQcuvuWytTBMaQfMKV2vrx4qv_OCHzNzuFvROukXY_Q@mail.gmail.com> <357AB2A4-C00C-4EF6-A926-36CBE5FA2FDC@netgate.com> <CAMijcFGd9wh2WDwpMegwAaq8dycSEECZkqHAYGjsnV3AN5HgCg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
(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 =3D NETMAP_RXRING((me+1)->nifp, (me+1)->begin);
struct netmap_slot *rs0 =3D &rxring0->slot[rxring0->cur];
unsigned char *rxbuf0 =3D (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 <zj262144@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 =3D NETMAP_RXRING((me+1)->nifp, (me+1)->begin);
> struct netmap_slot *rs0 =3D &rxring0->slot[rxring0->cur];
> unsigned char *rxbuf0 =3D (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 <jim@netgate.com>:
>
>> Jaye,
>>
>> I=E2=80=99d really like to see this work happen.
>>
>> Let me know if I can help.
>>
>> Jim
>>
>> > On Sep 17, 2014, at 9:39 PM, upyzl <zj262144@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-unsubscribe@freebsd.org"
>>
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMijcFHHae8Wv=AMNVi_OsdQSHNHBPXtMQ-Yh8wXWV0ZqJ9AAw>