From owner-freebsd-net@FreeBSD.ORG Mon Dec 18 14:58:20 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8067816A40F for ; Mon, 18 Dec 2006 14:58:20 +0000 (UTC) (envelope-from tanniru.sankar@wipro.com) Received: from wip-ectls-mx1.wipro.com (wip-ectls-mx1.wipro.com [203.91.193.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78E1843CB3 for ; Mon, 18 Dec 2006 14:58:17 +0000 (GMT) (envelope-from tanniru.sankar@wipro.com) Received: from wip-ectls-mx1.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 6DF962200A1 for ; Mon, 18 Dec 2006 20:09:46 +0530 (IST) Received: from blr-ec-bh02.wipro.com (blr-ec-bh02.wipro.com [10.201.50.92]) by wip-ectls-mx1.wipro.com (Postfix) with ESMTP id 5E7DD22007B for ; Mon, 18 Dec 2006 20:09:46 +0530 (IST) Received: from blr-m3-msg.wipro.com ([10.114.50.99]) by blr-ec-bh02.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 18 Dec 2006 20:09:46 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Mon, 18 Dec 2006 20:05:53 +0530 Message-ID: <8B9F8433B684734581EB519F1A3E5AF436CC6A@blr-m3-msg.wipro.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ' bus_dmamap_load_mbuf_sg ( ) ' function usage problem Thread-Index: AccisdIoYDCSzTgZSPSV9RF83vRtGg== From: To: X-OriginalArrivalTime: 18 Dec 2006 14:39:46.0259 (UTC) FILETIME=[5CF76A30:01C722B2] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ' bus_dmamap_load_mbuf_sg ( ) ' function usage problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 14:58:20 -0000 Hi, =20 I am facing a problem on FreeBSD 7.0 during mapping using ' bus_dmamap_load_mbuf_sg ( ) ' function . Details are below. =20 It is AMD 64 bit machine. I have allocated jumbo buffer memory using ' m_getcl ' function. =20 mp =3D m_getjcl(M_DONTWAIT, MT_DATA, M_PKTHDR, MJUM9BYTES); =20 As it got success here, I am trying to map the buffer as below. =20 err =3D bus_dmamap_load_mbuf_sg(dma_tag_rx, map, mp, &seg, &cnt, BUS_DMA_NOWAIT); =20 Here it is getting error for the mbuf size equal to MJUM9BYTES. The type of error is ' EFBIG '. =20 I have create rx jumbo dma tag with attributes as following. =20 bus_dma_tag_create( NULL, /* Parent */ PAGE_SIZE, /* Alignment */ =20 0, /* Bounds */ BUS_SPACE_MAXADDR, /* Low Address */ =20 BUS_SPACE_MAXADDR, /* High Address */ =20 NULL, /* Filter Function */ NULL, /* Filter Function Arguments */ MJUM9BYTES, /* Maximum Size */ 1 , /* Number of Segments */ MJUM9BYTES, /* Maximum Segment Size */ BUS_DMA_ALLOCNOW, /* Flags */ NULL, /* Lock Function */ NULL, /* Lock Function Arguments */ dma_tag_rx) /* DMA Tag */ I have seen the myri10ge and mxge source code, they are allocating maximum buffer size as MJUMPAGESIZE. is it like this is the maximum size we can dmamap?? =20 could anyone help me on this. =20 =20 Thanks, Sankar. =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 Siva Sankar . T Project Engineer Wipro Technologies No.53/1 Hosur Road,=20 Madivala, Bangalore- 560 068. India Tel:+91-80-25502001 Extn.5056=20 Mobile:9886894429=20 tanniru.sankar@wipro.com www.wipro.com =20 The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.=20 WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email. =20 www.wipro.com