]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Fix skb allocation strategy
authorAndy Fleming <afleming@freescale.com>
Tue, 22 Apr 2008 22:18:29 +0000 (17:18 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 25 Apr 2008 06:08:56 +0000 (02:08 -0400)
commit4c267981acc1de2440f839940eea6c6777783e3e
tree3c20709f85fd6dc2fdae869d76527d1c30bf7534
parent525e26623cedee02aa8ff0898794b5ab509c08a1
gianfar: Fix skb allocation strategy

gianfar was unable to handle failed skb allocation for rx buffers, so
we were spinning until it succeeded.  Actually, it was worse--we were
spinning for a long time, and then silently failing.  Instead, we take
Stephen Hemminger's suggestion to try the allocation earlier, and drop the
packet if it failed.

We also make a couple of tweaks to how buffer descriptors are set up.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/gianfar.c