OSDN Git Service

net: mvneta: Improve the buffer allocation method for SWBM
authorYelena Krivosheev <yelena@marvell.com>
Wed, 18 Jul 2018 16:10:57 +0000 (18:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 05:12:55 +0000 (22:12 -0700)
commit562e2f467e71f45f0400ebee5077eaa426d3e426
tree43091d1a8aa0e7541a1b4080b4dae1e0e2e89715
parentf945cec88cbd2f66251a9f5b2532ca10c4e87426
net: mvneta: Improve the buffer allocation method for SWBM

With system having a small memory (around 256MB), the state "cannot
allocate memory to refill with new buffer" is reach pretty quickly.

By this patch we changed buffer allocation method to a better handling of
this use case by avoiding memory allocation issues.

Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
[gregory: extract from a larger patch]
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c