]> git.baikalelectronics.ru Git - kernel.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)
commit4c0f2b4f433fa440ad174c367cdd620c7373da16
treeefffc29967430abdc24b37111ed78b3b491e3f90
parent828a6a4a068af7565b2de8edc67fca09ed0e1473
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