net/sfc/base: use MAC stats DMA buffer size from caps
authorAndy Moreton <amoreton@solarflare.com>
Tue, 20 Feb 2018 07:33:57 +0000 (07:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:42 +0000 (14:08 +0200)
commite5d5a7983e5b0494f9f20d2c089911b32cb525b1
tree8d8dd7b88cb6b016508a8f0f75832b13bfeb89f0
parent0edb4ecbe85bb8aef0c237bd00d9d1ef8e76a45b
net/sfc/base: use MAC stats DMA buffer size from caps

For Medford2 the DMA buffer used for one-shot or periodic MAC stats
has been extended. Ensure the MAC stats DMA buffer size is large
enough to hold the number of stats counters supported by firmware.

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