Re: [PATCH] [V3] Add non-Virtex5 support for LL TEMAC driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Monday, April 5, 2010 - 2:29 pm

Le lundi 05 avril 2010 à 15:11 -0600, John Linn a écrit :


Very interesting way of doing this, but why such convoluted thing ?

Because of the % 32, this is equivalent to :

#define BUFFER_ALIGN(adr) ((2 - ((u32) adr)) % XTE_ALIGN)

But wait, dont we recognise the magic constant NET_IP_ALIGN ?

So, I ask, cant you use netdev_alloc_skb_ip_align() in this driver ?


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] [V3] Add non-Virtex5 support for LL TEMAC driver, Eric Dumazet, (Mon Apr 5, 2:29 pm)
RE: [PATCH] [V3] Add non-Virtex5 support for LL TEMAC driver, Steven J. Magnani, (Tue Apr 6, 8:08 am)
Re: [PATCH] [V3] Add non-Virtex5 support for LL TEMAC driver, Steven J. Magnani, (Tue Apr 6, 1:03 pm)