]> asedeno.scripts.mit.edu Git - linux.git/commit
net: ethernet: aquantia: Fixed memory allocation if AQ_CFG_RX_FRAME_MAX > 1 page.
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 20 Feb 2017 19:36:49 +0000 (22:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:09 +0000 (17:11 -0500)
commit89b643889b1f56d8b53728f6153a4237c849784b
treeefffc29967430abdc24b37111ed78b3b491e3f90
parentc0788f7463f138bb1d30552b3edac442781b4e11
net: ethernet: aquantia: Fixed memory allocation if AQ_CFG_RX_FRAME_MAX > 1 page.

We should allocate the number of pages based on the config parameter
AQ_CFG_RX_FRAME_MAX.

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c