]> git.baikalelectronics.ru Git - kernel.git/commit
net: sgi: ioc3-eth: refactor rx buffer allocation
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Fri, 30 Aug 2019 09:25:33 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 20:54:36 +0000 (13:54 -0700)
commit64ad66326bcf97e926bf302af60e28776a2954e8
treed0d5bf418d9df8cd3f592bf0425f49f964448429
parent5fd9abcd543de1d499e397ec84cd4307ad50a999
net: sgi: ioc3-eth: refactor rx buffer allocation

Move common code for rx buffer setup into ioc3_alloc_skb and deal
with allocation failures. Also clean up allocation size calculation.

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