[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120322.225756.1072869324737577667.davem@davemloft.net>
Date: Thu, 22 Mar 2012 22:57:56 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: NETDEV_ALIGN should match L1_CACHE_BYTES
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 22 Mar 2012 15:19:20 -0700
> 32 bytes alignment had a meaning 10 years ago, it is not anymore the
> case.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
This value is supposed to conceptually be ARCH_DMA_MINALIGN.
Drivers, like the AMD Lance, would DMA in and out of the netdev
private struct. And as such DMA alignments have to be adhered
to.
There is way too much ISA and ancient crap out there to mess with
this, I think. Maybe we could set it to ARCH_DMA_MINALIGN (you'd need
to use a CPP test since architectures are not required to set this,
and use L1_CACHE_BYTES if it's not). But certainly we can't
unilaterally change it to L1_CACHE_BYTES.
--
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