From owner-freebsd-atm@FreeBSD.ORG Wed Jun 18 14:33:33 2003 Return-Path: Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B45F37B401 for ; Wed, 18 Jun 2003 14:33:33 -0700 (PDT) Received: from fork.recoil.org (fork.recoil.org [194.70.3.132]) by mx1.FreeBSD.org (Postfix) with SMTP id 464AF43FAF for ; Wed, 18 Jun 2003 14:33:32 -0700 (PDT) (envelope-from anil@recoil.org) Received: (qmail 24225 invoked by uid 10000); 18 Jun 2003 21:31:54 -0000 Date: Wed, 18 Jun 2003 22:31:54 +0100 From: Anil Madhavapeddy To: freebsd-atm@freebsd.org Message-ID: <20030618213150.GA20365@fork> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306141312.10789.vjardin@wanadoo.fr> User-Agent: Mutt/1.4.1i Subject: procom aal0 mode X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 21:33:33 -0000 Vincent Jardin wrote: > > I have merged the Proatm driver with my local copy. > > It is available at: > http://vjardin.free.fr/harp/harp_20030613.tgz I tried this out on FreeBSD 4.8 with a Procom 155B and it works great with the minor patch below (since aux doesnt exist in the 4.8 mbuf anymore) One question: I'm trying to access the device in AAL0 mode, to gain access to the raw 48-byte payload. Does the procom driver support this? Comments in the driver suggest not. I've tried a quick natm program, and that also failed. Could someone suggest a good way to do AAL0 on a Procom card? --- /tmp/harp/pci/proatm.c Fri Jun 13 11:57:23 2003 +++ proatm.c Tue Jun 17 16:56:08 2003 @@ -3441,11 +3441,13 @@ mptr->m_pkthdr.rcvif = NULL; mptr->m_nextpkt = NULL; #ifndef FBSD35 +#if 0 if (mptr->m_pkthdr.aux != NULL) { printf("proatm%d: received pkthdr.aux=%x\n", proatm->unit, (int32_t) mptr->m_pkthdr.aux); mptr->m_pkthdr.aux = NULL; } +#endif if (mptr->m_pkthdr.csum_flags) { printf("proatm%d: received pkthdr.csum_flags=%x\n", proatm->unit, mptr->m_pkthdr.csum_flags); -- Anil Madhavapeddy http://anil.recoil.org University of Cambridge http://www.cl.cam.ac.uk From owner-freebsd-atm@FreeBSD.ORG Wed Jun 18 15:11:35 2003 Return-Path: Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C25437B401 for ; Wed, 18 Jun 2003 15:11:35 -0700 (PDT) Received: from mwinf0202.wanadoo.fr (smtp7.wanadoo.fr [193.252.22.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEEFE43F93 for ; Wed, 18 Jun 2003 15:11:33 -0700 (PDT) (envelope-from vjardin@wanadoo.fr) Received: from venus.vincentjardin.net (unknown [193.253.220.212]) by mwinf0202.wanadoo.fr (SMTP Server) with ESMTP id 61E8EA4001B6; Thu, 19 Jun 2003 00:11:32 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Vincent Jardin To: Anil Madhavapeddy , freebsd-atm@freebsd.org Date: Thu, 19 Jun 2003 00:12:31 +0200 User-Agent: KMail/1.4.3 References: <20030618213150.GA20365@fork> In-Reply-To: <20030618213150.GA20365@fork> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306190012.31245.vjardin@wanadoo.fr> Subject: Re: procom aal0 mode X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 22:11:35 -0000 > I tried this out on FreeBSD 4.8 with a Procom 155B and it works great > with the minor patch below (since aux doesnt exist in the 4.8 mbuf anym= ore) I agree about this patch. Moreover I think that the test of the aux field= =20 could be removed because we do not care. > One question: I'm trying to access the device in AAL0 mode, to gain acc= ess > to the raw 48-byte payload. Does the procom driver support this? Comm= ents > in the driver suggest not. I've tried a quick natm program, and that a= lso > failed. Yes, it could be possible, see the function proatm_process_rcqe(). It sho= uld=20 process the raw cells, however, up to now, it does nothing. Besides, the interrupt handler calls proatm_rawc() when IDT_RCTE_RAWCELLI= NTEN=20 is set (see proatm_init(), and proatm_connect_rxopen() ). You can see that you need to define RCQ_SUPPORT in order to enable the Ra= w=20 Cell Queue. README.proatm: RCQ_SUPPORT ----------- Enables receipt of erroneous cells, or receipt of cells from non open VCs= =2E So far we do nothing with these cells but an empty function is provided wher= e you can write your own processing. For more infomation about the Raw Cells, the OAM cells, ... see the IDT=20 chipset documentation.=20 > Could someone suggest a good way to do AAL0 on a Procom card? Can you use the raw cells for this purpose ? Regards, Vincent PS: Why do you need to receive or to send an AAL0 cell ? Unfortunately, i= t is=20 not well supported by the HARP stack ;-( (there is no AAL0 ATM socket). From owner-freebsd-atm@FreeBSD.ORG Wed Jun 18 15:46:39 2003 Return-Path: Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBB9337B401 for ; Wed, 18 Jun 2003 15:46:39 -0700 (PDT) Received: from fork.recoil.org (fork.recoil.org [194.70.3.132]) by mx1.FreeBSD.org (Postfix) with SMTP id AB77743FBF for ; Wed, 18 Jun 2003 15:46:38 -0700 (PDT) (envelope-from anil@recoil.org) Received: (qmail 6865 invoked by uid 10000); 18 Jun 2003 22:45:01 -0000 Date: Wed, 18 Jun 2003 23:45:01 +0100 From: Anil Madhavapeddy To: Vincent Jardin Message-ID: <20030618224457.GA22134@fork> References: <20030618213150.GA20365@fork> <200306190012.31245.vjardin@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306190012.31245.vjardin@wanadoo.fr> User-Agent: Mutt/1.4.1i cc: freebsd-atm@freebsd.org Subject: Re: procom aal0 mode X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 22:46:40 -0000 On Thu, Jun 19, 2003 at 12:12:31AM +0200, Vincent Jardin wrote: > > I agree about this patch. Moreover I think that the test of the aux field > could be removed because we do not care. Initialising it to 0 on earlier versions is probably a safe thing to do; perhaps just wrap it around a version define to not break on 4.8 > Yes, it could be possible, see the function proatm_process_rcqe(). It should > process the raw cells, however, up to now, it does nothing. > > Besides, the interrupt handler calls proatm_rawc() when IDT_RCTE_RAWCELLINTEN > is set (see proatm_init(), and proatm_connect_rxopen() ). > You can see that you need to define RCQ_SUPPORT in order to enable the Raw > Cell Queue. Ahh yes, thanks - that looks about right. I was hoping for natm support (AAL0 mode there looks like just what I need), but I don't have any Midway cards, only Procom. > PS: Why do you need to receive or to send an AAL0 cell ? Unfortunately, it is > not well supported by the HARP stack ;-( (there is no AAL0 ATM socket). We have some custom embedded devices that we use ATM as a transport for, but nothing else; it used to run on Linux but we are switching to FreeBSD now and looking for a good point to hook into the driver. regards, -- Anil Madhavapeddy http://anil.recoil.org University of Cambridge http://www.cl.cam.ac.uk From owner-freebsd-atm@FreeBSD.ORG Thu Jun 19 00:23:17 2003 Return-Path: Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D42BA37B401 for ; Thu, 19 Jun 2003 00:23:17 -0700 (PDT) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98F0A43F3F for ; Thu, 19 Jun 2003 00:23:16 -0700 (PDT) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h5J7NBQ10948; Thu, 19 Jun 2003 09:23:11 +0200 (MEST) Date: Thu, 19 Jun 2003 09:23:11 +0200 (CEST) From: Harti Brandt To: Anil Madhavapeddy In-Reply-To: <20030618224457.GA22134@fork> Message-ID: <20030619092050.A630@beagle.fokus.fraunhofer.de> References: <20030618213150.GA20365@fork> <200306190012.31245.vjardin@wanadoo.fr> <20030618224457.GA22134@fork> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-atm@freebsd.org Subject: Re: procom aal0 mode X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 07:23:18 -0000 On Wed, 18 Jun 2003, Anil Madhavapeddy wrote: AM>Ahh yes, thanks - that looks about right. I was hoping for natm support AM>(AAL0 mode there looks like just what I need), but I don't have any Midway AM>cards, only Procom. AM> AM>> PS: Why do you need to receive or to send an AAL0 cell ? Unfortunately, it is AM>> not well supported by the HARP stack ;-( (there is no AAL0 ATM socket). AM> AM>We have some custom embedded devices that we use ATM as a transport for, AM>but nothing else; it used to run on Linux but we are switching to FreeBSD AM>now and looking for a good point to hook into the driver. I'm just starting to put together a NATM driver for the ProSums. It will support AAL0 (through netgraph). NB: the hatm driver I just commited supports AAL0. On a 1GHz machine I can route up to 150000cells/sec through the kernel. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org