From owner-freebsd-arm@FreeBSD.ORG Mon Aug 26 22:28:13 2013 Return-Path: Delivered-To: freebsd-arm@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 ESMTP id 0D28821D for ; Mon, 26 Aug 2013 22:28:13 +0000 (UTC) (envelope-from ThomasSkibo@sbcglobal.net) Received: from nm22-vm1.access.bullet.mail.bf1.yahoo.com (nm22-vm1.access.bullet.mail.bf1.yahoo.com [216.109.115.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A231A25A9 for ; Mon, 26 Aug 2013 22:28:12 +0000 (UTC) Received: from [66.196.81.156] by nm22.access.bullet.mail.bf1.yahoo.com with NNFMP; 26 Aug 2013 22:22:39 -0000 Received: from [98.139.221.48] by tm2.access.bullet.mail.bf1.yahoo.com with NNFMP; 26 Aug 2013 22:22:39 -0000 Received: from [127.0.0.1] by smtp101.sbc.mail.bf1.yahoo.com with NNFMP; 26 Aug 2013 22:22:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1377555759; bh=hPhnzDTnKnfJJpUUoCHp6k6NZI6bhfwS3/2w2KHiPgs=; 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=4yv5mGMbofMQ3J3Mce4HzusifCTqA3v2+D+w01BZgZ1jl3P4sb8ZF3Nb7DcZrqZP5/WeRkBxZyJ0XYS01wokJQFL1ZB9UQ9dXprUVU2zXyTUDJi3jzZM5W3TPePSuG+yEXE8vzCXc/pNBZP9103rnks9agLXhOXVLbUL6gkT1b0= X-Yahoo-Newman-Id: 534893.85420.bm@smtp101.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: gHgTueEVM1nxmq0zs9ujMTZgRlXcDx68Snkh.njnW_bH.xz wxkTb9R_MB_Xr77q6huhgd135G2pLQdyl4ORzbscMjy2sVX3u_hdfE4Vzy.9 4zJj93U8HVObFq5hr_GcqOkkDwY39m7WtxVf3f5TL00n.HRiEYCQ8b5GgZuL nUY.rZAxmoitGC8yypAF8ZMHKOQ1bkLZoRvGSoX.bnmVOAx8mdaAIHEj3Ka5 M_bzleWni40Q01YhT16.QvjHOHuh6tGd5MFnL28Bc85e_jd7s0Ks3G82WS03 .shtLz1MT01ttjV9K3LaTsfxKhq2CTHwy0JV9CIc_mHjGidL8AfXDsqBfs3z cijFPgDyqumkNs4qQpcGAyH9LF9PBYhuZgCg0pY1kNNeeChCxQxO1LbIQH8i IOIj7RNXclC68yTJzwMBsn_kceSDiRynt0.4arMxvWlJf8zT.2AAvOY77usQ nTyJTNW9XBth2oq2vjv8Oqe3l1tkWfVaOM16Ecejtwnkb1ILZokFoCdDfUCd PmZNcfs5KngCr.iD0aRsOhw6gF_IT82Qnhoe7fj9BqiLFXl8lJAvS0cSB.nw iFEK5F7_N X-Yahoo-SMTP: tUxoRneswBA21azLM.3ybMESf0mC2bFhTbmt0VU5ervH0kqi5lo- X-Rocket-Received: from [192.168.1.9] (ThomasSkibo@71.139.173.243 with plain) by smtp101.sbc.mail.bf1.yahoo.com with SMTP; 26 Aug 2013 15:22:39 -0700 PDT Message-ID: <521BD531.4090104@sbcglobal.net> Date: Mon, 26 Aug 2013 15:22:41 -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> <521BC472.7040804@freebsd.org> In-Reply-To: <521BC472.7040804@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm 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:28:13 -0000 On 8/26/13 2:11 PM, Andre Oppermann wrote: > > Can you try this patch see check if it makes a difference on the bitfield? > Actually, this works for me. But, I'm worried that somewhere else something is going to trip over a struct pkthdr not being 64-bit aligned. There are several 64-bit fields in there. --Thomas root@ashbury:/usr/src/sys/sys # svn diff mbuf.h Index: mbuf.h =================================================================== --- mbuf.h (revision 254889) +++ mbuf.h (working copy) @@ -94,7 +94,7 @@ int32_t mh_len; /* amount of data in this mbuf */ uint32_t mh_type:8, /* type of data in this mbuf */ mh_flags:24; /* flags; see below */ -}; +} __packed; /* * Packet tag structure (see below for details). @@ -169,7 +169,7 @@ (struct mbuf *, void *, void *); void *ext_arg1; /* optional argument pointer */ void *ext_arg2; /* optional argument pointer */ -}; +} __packed; /* * The core of the mbuf object along with some shortcut defines for practical @@ -187,7 +187,7 @@ } MH; char M_databuf[MLEN]; /* !M_PKTHDR, !M_EXT */ } M_dat; -}; +} __packed; #define m_next m_hdr.mh_next #define m_len m_hdr.mh_len -- -------- Thomas Skibo ThomasSkibo@sbcglobal.net