]> err.no Git - linux-2.6/commit
[IPoIB] Drop RX packets when out of memory
authorRoland Dreier <rolandd@cisco.com>
Fri, 28 Oct 2005 22:30:34 +0000 (15:30 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 28 Oct 2005 22:30:34 +0000 (15:30 -0700)
commit1993d683f39f77ddb46a662d7146247877d50b8f
tree608391d9daa25e13b70cc11d6b99f800a7079050
parentcb0f0910f4b41772a6771bdb4fb2d419b27bcd77
[IPoIB] Drop RX packets when out of memory

Change the way IPoIB handles RX packets when it can't allocate a new
receive skbuff.  If the allocation of a new receive skb fails, we now
drop the packet we just received and repost the original receive skb.
This means that the receive ring always stays full and we don't have
to monkey around with trying to schedule a refill task for later.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_main.c