]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4af3e01f197b7ac8411c03ea6ca19714bca6b19c
treeb79d03cfecf1100fd6e4eb8598493df2c8269af1
parent2f436f6a2c2d761ccb3aba0d11e657d9ec62b05c
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