diff options
author | Thierry Reding <treding@nvidia.com> | 2014-08-26 17:34:26 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-10-11 01:27:07 +0200 |
commit | 96b07cfc6a033ff3be4cee6b05908d2731f96a1f (patch) | |
tree | 7d92b0d6d2645db0d695b52585e496d364161b94 /api | |
parent | d76d31a5c96c27ab2dad16f6f3f7bc05d5c1bd04 (diff) |
net: rtl8169: Properly align buffers
RX and TX descriptor rings should be aligned to 256 byte boundaries. Use
the DEFINE_ALIGN_BUFFER() macro to define the buffers so that they don't
have to be manually aligned later on. Also make sure that the buffers do
align to cache-line boundaries in case the cache-line is higher than the
256 byte alignment requirements of the NIC.
Also add a warning if the cache-line size is larger than the descriptor
size, because the driver may discard changes to descriptors made by the
hardware when requeuing RX buffers.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions