IPoIB: Lock accesses to multicast packet queues
authorMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 17 Jan 2006 20:19:40 +0000 (12:19 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 17 Jan 2006 20:19:40 +0000 (12:19 -0800)
commitb36f170b617a7cd147b694dabf504e856a50ee9d
tree538606cc821b415447d5db710d76ef2272a75934
parent0f47ae0b3ec35dc5f4723f2e0ad0f6f3f55e9bcd
IPoIB: Lock accesses to multicast packet queues

Avoid corrupting mcast->pkt_queue by serializing access with
priv->tx_lock.  Also, update dropped packet statistics to count
multicast packets removed from pkt_queue as dropped.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_multicast.c