[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1352134417.2747.0.camel@edumazet-glaptop>
Date: Mon, 05 Nov 2012 08:53:37 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Rob Herring <robherring2@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net,
Rob Herring <rob.herring@...xeda.com>
Subject: Re: [PATCH v3 6/6] net: calxedaxgmac: ip align receive buffers
On Mon, 2012-11-05 at 10:22 -0600, Rob Herring wrote:
> From: Rob Herring <rob.herring@...xeda.com>
>
> On gcc 4.7, we will get alignment traps in the ip stack if we don't align
> the ip headers on receive. The h/w can support this, so use ip aligned
> allocations.
>
> Cut down the unnecessary padding on the allocation. The buffer can start on
> any byte alignment, but the size including the begining offset must be 8
> byte aligned. So the h/w buffer size must include the NET_IP_ALIGN offset.
>
> Thanks to Eric Dumazet for the initial patch highlighting the padding issues.
>
> Signed-off-by: Rob Herring <rob.herring@...xeda.com>
> ---
Acked-by: Eric Dumazet <edumazet@...gle.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists