diff options
author | Edward Cree <ecree@solarflare.com> | 2017-01-14 00:20:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-16 22:00:46 +0300 |
commit | c634700f7eec3c0da46e299cd0a0ae8b594f9b55 (patch) | |
tree | 626daecfa450bfadaa774807c78fcc0d74cd1077 /drivers/net/ethernet/sfc/tx.c | |
parent | de1deff994286f464d5cad152d97830a5155f9ba (diff) | |
download | linux-c634700f7eec3c0da46e299cd0a0ae8b594f9b55.tar.xz |
sfc: get PIO buffer size from the NIC
The 8000 series SFC NICs have 4K PIO buffers, rather than the 2K of
the 7000 series. Rather than having a hard-coded PIO buffer size
(ER_DZ_TX_PIOBUF_SIZE), read it from the GET_CAPABILITIES_V2 MCDI
response.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/tx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/tx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/tx.c b/drivers/net/ethernet/sfc/tx.c index beaf98080a0b..ff88d60aa6d5 100644 --- a/drivers/net/ethernet/sfc/tx.c +++ b/drivers/net/ethernet/sfc/tx.c @@ -28,7 +28,6 @@ #ifdef EFX_USE_PIO -#define EFX_PIOBUF_SIZE_MAX ER_DZ_TX_PIOBUF_SIZE #define EFX_PIOBUF_SIZE_DEF ALIGN(256, L1_CACHE_BYTES) unsigned int efx_piobuf_size __read_mostly = EFX_PIOBUF_SIZE_DEF; |