net/sfc/base: use MAC stats DMA buffer size when decoding
authorAndy Moreton <amoreton@solarflare.com>
Tue, 20 Feb 2018 07:33:58 +0000 (07:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:42 +0000 (14:08 +0200)
commitcf89d0c9ede2322b6abc568dfefd7d0e18be9b8a
treea6cea438a6e84dee35acdc1c10a57f6344d12ca3
parente5d5a7983e5b0494f9f20d2c089911b32cb525b1
net/sfc/base: use MAC stats DMA buffer size when decoding

On Medford2 and later the MAC stats buffer has been enlarged.
Use the MAC stats DMA buffer size to ensure that the stats END
generation count is read from the correct location, and that
over-reading of the DMA buffer is prevented.

Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_mac.c
drivers/net/sfc/base/siena_mac.c