[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <p2vfa686aa41004061054qad1495bbxdf6deb5d5d9dd4bf@mail.gmail.com>
Date: Tue, 6 Apr 2010 11:54:42 -0600
From: Grant Likely <grant.likely@...retlab.ca>
To: John Linn <John.Linn@...inx.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>, netdev@...r.kernel.org,
linuxppc-dev@...abs.org, jwboyer@...ux.vnet.ibm.com,
john.williams@...alogix.com, michal.simek@...alogix.com,
John Tyner <jtyner@...ucr.edu>
Subject: Re: [PATCH] [V3] Add non-Virtex5 support for LL TEMAC driver
On Mon, Apr 5, 2010 at 3:33 PM, John Linn <John.Linn@...inx.com> wrote:
> From: Eric Dumazet [mailto:eric.dumazet@...il.com]
>> > +/* Align the IP data in the packet on word boundaries as MicroBlaze
>> > + * needs it.
>> > + */
>> > +
>> > #define XTE_ALIGN 32
>> > -#define BUFFER_ALIGN(adr) ((XTE_ALIGN - ((u32) adr)) % XTE_ALIGN)
>> > +#define BUFFER_ALIGN(adr) ((34 - ((u32) adr)) % XTE_ALIGN)
>> >
>>
>> Very interesting way of doing this, but why such convoluted thing ?
>
> Grant might have insight into why this started this way, I just updated to help with MicroBlaze alignment.
It was that way in the code I received from Yoshio Kashiwagi and David
H. Lynch. I have no problem with it being changed.
Personally I would probably write a followup patch to change this to
netdev_alloc_skb_ip_align(), just to keep changes logically separated.
But I'm okay with it rolled into this patch also.
g.
--
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