summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/siena_sriov.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-09-14 20:31:41 +0400
committerBen Hutchings <bhutchings@solarflare.com>2013-08-21 19:35:27 +0400
commit9528b9219348e0a013f4b587958a8ba9c96d7e20 (patch)
treef6244c5dccb81e29aa3fb8e2a5bbfcebd20333c0 /drivers/net/ethernet/sfc/siena_sriov.c
parentc5bb0e9891ba1f7c871adc09d9ef727e1c0c1c1e (diff)
downloadlinux-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