]> git.baikalelectronics.ru Git - kernel.git/commit
ehea: Reduce memory usage in buffer pools
authorAnton Blanchard <anton@samba.org>
Wed, 23 Nov 2011 00:13:02 +0000 (00:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Nov 2011 00:14:20 +0000 (19:14 -0500)
commit9b16185cb6b0ea147068390546c836a53a25007f
tree6747af6f60500e7e8562d45f2d33c6c7c4140141
parente1c84fd1624ca6aa4f719ad4b3ce49d2d4eebede
ehea: Reduce memory usage in buffer pools

Now that we enable multiqueue by default the ehea driver is using
quite a lot of memory for its buffer pools. With 4 queues we
consume 64MB in the jumbo packet ring, 16MB in the medium packet
ring and 16MB in the tiny packet ring.

We should only fill the jumbo ring once the MTU is increased but
for now halve it's size so it consumes 32MB. Also reduce the tiny
packet ring, with 4 queues we had 16k entries which is overkill.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea.h