IB/ipoib: Save only IPOIB_MAX_PATH_REC_QUEUE skb's
authorErez Shitrit <erezsh@mellanox.com>
Thu, 2 Apr 2015 10:39:03 +0000 (13:39 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:06:19 +0000 (16:06 -0400)
commit1e85b806f9b988ce2e465fb0f86c8cca228d83a9
tree97b9813ed07deee930c193c8ca80e912e75b09fb
parent2c0107309550b332f83f8be366521557f4b3fd5a
IB/ipoib: Save only IPOIB_MAX_PATH_REC_QUEUE skb's

Whenever there is no path->ah to the destination, keep only defined
number of skb's. Otherwise there are cases that the driver can keep
infinite list of skb's.

For example, when one device want to send unicast arp to the destination,
and from some reason the SM doesn't respond, the driver currently keeps
all the skb's. If that unicast arp traffic stopped, all  these skb's
are kept by the path object till the interface is down.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c