enic: Bug fix: try harder to fill Rx ring on skb allocation failures
authorScott Feldman <scofeldm@cisco.com>
Wed, 23 Dec 2009 13:27:38 +0000 (13:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2009 05:03:40 +0000 (21:03 -0800)
commit2d6ddced5c99cf79c06b9b6ec1366ab63b970ea9
treeb79d03cfecf1100fd6e4eb8598493df2c8269af1
parentb3d18d191bb805f3effdfc083c4ce79789470b46
enic: Bug fix: try harder to fill Rx ring on skb allocation failures

During dev->open(), make sure we get at least one skb on the Rx ring.
Otherwise abort the interface load.  Also, if we get skb allocation
failures in NAPI poll while trying to replenish the ring, try again
later so we don't end up starving out the Rx ring completely.

Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/enic/enic_main.c