OSDN Git Service

ibmvnic: Allocate number of rx/tx buffers agreed on by firmware
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Sun, 5 Mar 2017 18:18:42 +0000 (12:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:28:20 +0000 (09:28 +0100)
commitf191e15e4acdd43d7476b3ad16a3fe58d948be07
treeb5741b5727c37e0427309567b11631a12e07ca1b
parentf3b1f93ed23b0e3bdd99c8304726041fc68b2055
ibmvnic: Allocate number of rx/tx buffers agreed on by firmware

[ Upstream commit 068d9f90a6978c3e3a662d9e85204a7d6be240d2 ]

The amount of TX/RX buffers that the vNIC driver currently allocates
is different from the amount agreed upon in negotiation with firmware.
Correct that by allocating the requested number of buffers confirmed
by firmware.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmvnic.c