linux/drivers/infiniband
David Miller 17e6abeec4 infiniband: ipoib: Sanitize neighbour handling in ipoib_main.c
Reduce the number of dst_get_neighbour_noref() calls within a single
call chain.  Primarily by passing the neighbour pointer down to the
helper functions.

Handle dst_get_neighbour_noref() returning NULL in ipoib_start_xmit()
by incrementing the dropped counter and freeing the packet.  We don't
want it to fall through into the ARP/RARP/multicast handling, since
that should only happen when skb_dst() is NULL.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Roland Dreier <roland@purestorage.com>
2011-12-05 15:20:20 -05:00
..
core infiniband: addr: Consolidate code to fetch neighbour hardware address from dst. 2011-12-05 15:20:19 -05:00
hw infiniband: cxgb4: Consolidate 3 copies of the same operation into 1 helper function. 2011-12-05 15:20:20 -05:00
ulp infiniband: ipoib: Sanitize neighbour handling in ipoib_main.c 2011-12-05 15:20:20 -05:00
Kconfig RDMA: Add netlink infrastructure 2011-05-20 11:46:11 -07:00
Makefile IB/qib: Add new qib driver for QLogic PCIe InfiniBand adapters 2010-05-23 21:44:54 -07:00