From owner-freebsd-net@FreeBSD.ORG Thu Sep 18 06:17:11 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F8C8A28 for ; Thu, 18 Sep 2014 06:17:11 +0000 (UTC) Received: from mail-oa0-x230.google.com (mail-oa0-x230.google.com [IPv6:2607:f8b0:4003:c02::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0682FCC for ; Thu, 18 Sep 2014 06:17:10 +0000 (UTC) Received: by mail-oa0-f48.google.com with SMTP id g18so312860oah.21 for ; Wed, 17 Sep 2014 23:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zP58kBw+wnGse4ZUIgTwTWCcaR5NeVfLli4zwHqV5n4=; b=PZlObS81q1mBJq4z8iOTdb/DAH0/UC8vNgc8Z/f9VLYr3SXp2V7r3Wk47WC+33g0Jn nSoYw69Bla5vpJn30aPUasMNNO33jHNwcMp1X2KMPFbjz0zgIblUq5fOUp4n5DK7hCuu +s/5brwj1wlV8s9A2DQ/JAdZbM1rUysQbbSBWBkU79y+FEYi9dbgizYp/PkAIkGey8dL STTuQKwD9t7W8EFizNjqnfWQ5aCvHqxSdz+W1DpFbNOyDuydMfGIdu7spA/scdvskYHK u3TUZ49OCHoG+zuRodvvcQ9HCOXLaoyyQrHpmzUcq2gbFdH8nJ40YoEgbj5bAucld20X qNYA== MIME-Version: 1.0 X-Received: by 10.182.209.101 with SMTP id ml5mr2179587obc.2.1411021029915; Wed, 17 Sep 2014 23:17:09 -0700 (PDT) Received: by 10.76.95.199 with HTTP; Wed, 17 Sep 2014 23:17:09 -0700 (PDT) In-Reply-To: References: <357AB2A4-C00C-4EF6-A926-36CBE5FA2FDC@netgate.com> Date: Thu, 18 Sep 2014 14:17:09 +0800 Message-ID: Subject: Re: [netmap/vale-ctl] when could process packet From: upyzl To: Jim Thompson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2014 06:17:11 -0000 (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 : > 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 : > >> 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 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" >> >> >