From owner-freebsd-arm@FreeBSD.ORG Mon Aug 26 22:14:36 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 47DD9CC7 for ; Mon, 26 Aug 2013 22:14:36 +0000 (UTC) (envelope-from ThomasSkibo@sbcglobal.net) Received: from nm4-vm8.access.bullet.mail.gq1.yahoo.com (nm4-vm8.access.bullet.mail.gq1.yahoo.com [216.39.63.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E506D24DD for ; Mon, 26 Aug 2013 22:14:35 +0000 (UTC) Received: from [216.39.60.176] by nm4.access.bullet.mail.gq1.yahoo.com with NNFMP; 26 Aug 2013 22:08:06 -0000 Received: from [67.195.14.95] by tm12.access.bullet.mail.gq1.yahoo.com with NNFMP; 26 Aug 2013 22:08:06 -0000 Received: from [127.0.0.1] by smtp110.sbc.mail.gq1.yahoo.com with NNFMP; 26 Aug 2013 22:08:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1377554886; bh=XDi1sRFZdyDkaZF6eWc+JFlVMVbX8wi8vO1krO94ot8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=50Yw4ZehTgnMO1dVBsdU98NbaAF693Qx7oHIf56V8g+/iAEqv6u7LzpSSx9DxkQypn/xKkJJsrDUnieNEX0oHHBMoDRLuM5GpJfhOjB2objOaNQvRvqKvchOJMT5mZ7ySLg3TMm2Vf4nj/M10QXCvhS4aaKbhD4fTP0TLwVvEnU= X-Yahoo-Newman-Id: 54818.25566.bm@smtp110.sbc.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: l6ql6FoVM1kY39r2JRZOs4WCSOXsWletiABvRFRa7g1WuiL A3u9WTOrKjr9Z5lNE0eCuYV0ETWPSdhpEMPsbklWS73xcOJG7qKyAvLebgP2 Zqx86mfVeDNZm5Uy1aw0QPwWHVXm_YsINlEDAjy86Thf89qWKFoHwFGkAdVt Xf.JfeZBwldGKk7xAy8E448eKmpYZlphu_xxKEiaSw3j7UwlRVJRSRySd2ZH 36y8Gbx1t9pZf1U.c8vegIgF04zgnmxrjpsN0nsehpUnPgXRXn74Zt4zQeFf Hf6ObNKvtEPKnq8fsaL3kweQ97k3Cn3uwlce0z5.aFltYp3duF5Jd0rf80Qd pvxErAIXVx9Zb9PjmSxwOKH4pdpF6udw3NumuDid.S9Gu51e.zgE.cTJDHq7 91MIYURLeRC9M.Wv4zevL.QqNoemMx7jJOvK9sBFVS4fP4Jx.SppteuRSfpn J85LID6Cjfdal4vGY.2O8vMT5.ZlkFjXhGU.UKllnHPbKRGflgYS.w9f5cMU 0O._PPAQqSr7dI1CmtUz3ZuY1jkAojju0TyS5rOwhh13QYm7Ih.DkEle4jOj gEhoNj_vyyxPH X-Yahoo-SMTP: tUxoRneswBA21azLM.3ybMESf0mC2bFhTbmt0VU5ervH0kqi5lo- X-Rocket-Received: from [192.168.1.9] (ThomasSkibo@71.139.173.243 with plain) by smtp110.sbc.mail.gq1.yahoo.com with SMTP; 26 Aug 2013 15:08:06 -0700 PDT Message-ID: <521BD1C8.8000500@sbcglobal.net> Date: Mon, 26 Aug 2013 15:08:08 -0700 From: Thomas Skibo User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Andre Oppermann Subject: Re: ARM network trouble after recent mbuf changes References: <1377550636.1111.156.camel@revolution.hippie.lan> <521BC2F3.4050600@freebsd.org> In-Reply-To: <521BC2F3.4050600@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm , Ian Lepore X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 22:14:36 -0000 On 8/26/13 2:04 PM, Andre Oppermann wrote: > On 26.08.2013 22:57, Ian Lepore wrote: >> >> Could this be something related to how bitfields are handled in EABI? > > It could be. We do use bitfields since forever in ip.h for the IPv4 header > too. I think the bitfields are fine and it's doing what you expect: struct m_hdr is five words long. I think what's happening is that the compiler pads the struct pkthdr in an mbuf to 64 bits. Because MLEN doesn't take into account that padding, it is too big by 4. My work-around fixes it by making struct m_hdr six words instead of five. > > Besides that, do all the ARM system with this problem use the same network > interface type? > The same driver? No. Zynq/Zedboard has a unique ethernet driver and it's seeing the problem I tried your patch (adding __packed to a few structs) and it didn't work. Maybe pack struct mbuf ? --Thomas -- -------- Thomas Skibo ThomasSkibo@sbcglobal.net