diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-09-14 20:31:41 +0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-08-21 19:35:27 +0400 |
commit | 9528b9219348e0a013f4b587958a8ba9c96d7e20 (patch) | |
tree | f6244c5dccb81e29aa3fb8e2a5bbfcebd20333c0 /drivers/net/ethernet/sfc/siena_sriov.c | |
parent | c5bb0e9891ba1f7c871adc09d9ef727e1c0c1c1e (diff) | |
download | linux-9528b9219348e0a013f4b587958a8ba9c96d7e20.tar.xz |
sfc: Ensure MCDI buffers, but not lengths, are dword aligned
We currently require that MCDI request and response lengths are
multiples of 4 bytes, because we will copy dwords in and out of shared
memory and we want to be sure we won't read or write out of bounds.
But all we really need to know is that there is sufficient padding for
that. Also, we should ensure that buffers are dword-aligned, as on
some architectures misaligned access will result in data corruption or
a crash.
Change the buffer type to array-of-efx_dword_t and remove the
requirement that the lengths are multiples of 4.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/siena_sriov.c')
0 files changed, 0 insertions, 0 deletions