]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: get PIO buffer size from the NIC
authorEdward Cree <ecree@solarflare.com>
Fri, 13 Jan 2017 21:20:29 +0000 (21:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 19:00:46 +0000 (14:00 -0500)
commit9fd2268683f4015547f4f8ab25c4994780c7c566
tree626daecfa450bfadaa774807c78fcc0d74cd1077
parent832f2dc836934d660e994d0b5e8f9bb686baca50
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>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/tx.c