diff options
author | Edward Cree <ecree@solarflare.com> | 2017-01-13 21:20:29 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-16 14:00:46 -0500 |
commit | c634700f7eec3c0da46e299cd0a0ae8b594f9b55 (patch) | |
tree | 626daecfa450bfadaa774807c78fcc0d74cd1077 /drivers/net/ethernet/sfc/tx.c | |
parent | sfc: allow PIO more often (diff) | |
download | linux-dev-c634700f7eec3c0da46e299cd0a0ae8b594f9b55.tar.xz linux-dev-c634700f7eec3c0da46e299cd0a0ae8b594f9b55.zip |
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 '')
-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; |