]> git.baikalelectronics.ru Git - kernel.git/commit
net: sgi: ioc3-eth: allocate space for desc rings only once
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Fri, 30 Aug 2019 09:25:28 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 20:54:35 +0000 (13:54 -0700)
commit9d828b9a795fd4ec252a68fb474abf56ec8532e7
tree5d2d69ae40eac14f298034052ce6f83de648b5f7
parent05fea0602100c2bd61d1ff50b5bfdfb9d50af555
net: sgi: ioc3-eth: allocate space for desc rings only once

Memory for descriptor rings are allocated/freed, when interface is
brought up/down. Since the size of the rings is not changeable by
hardware, we now allocate rings now during probe and free it, when
device is removed.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sgi/ioc3-eth.c