]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitc634700f7eec3c0da46e299cd0a0ae8b594f9b55
tree626daecfa450bfadaa774807c78fcc0d74cd1077
parentde1deff994286f464d5cad152d97830a5155f9ba
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