From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laszlo Ersek Subject: Re: [Xen-devel] [PATCH] xen-netfront: correct MAX_TX_TARGET calculation. Date: Fri, 03 Feb 2012 14:39:42 +0100 Message-ID: <4F2BE39E.9030101@redhat.com> References: <1327598603-16398-1-git-send-email-wei.liu2@citrix.com> <20120126181900.GB25572@phenom.dumpdata.com> <1327660589.2585.14.camel@leeni.uk.xensource.com> <4F2BD2CC.4050906@redhat.com> <4F2BDA4C.7060601@redhat.com> <4F2BEEA70200007800070E81@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F2BEEA70200007800070E81@nat28.tlf.novell.com> Sender: netdev-owner@vger.kernel.org To: Jan Beulich Cc: Wei Liu , "netdev@vger.kernel.org" , "jeremy@goop.org" , "xen-devel@lists.xensource.com" , Ian Campbell , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On 02/03/12 14:26, Jan Beulich wrote: >>>> On 03.02.12 at 13:59, Laszlo Ersek wrote: >> (Eyeballing the source makes me think >> >> NET_TX_RING_SIZE == (4096 - 16 - 48) / (5 * 4) == 201 >> NET_RX_RING_SIZE == (4096 - 16 - 48) / (4 * 4) == 252 > > NET_TX_RING_SIZE == (4096 - 16 - 48) / (6 * 2) == 336 > NET_RX_RING_SIZE == (4096 - 16 - 48) / (4 * 2) == 504 Sorry, I wasn't sure if gcc would pack them without __attribute__((packed)) :) Dumb mistake, admittedly. Thanks, Laszlo