IPoIB: Set pkt_type correctly for multicast packets (fix IGMP breakage)
authorChristoph Lameter <cl@linux.com>
Fri, 27 Aug 2010 13:29:38 +0000 (08:29 -0500)
committerRoland Dreier <rolandd@cisco.com>
Tue, 28 Sep 2010 18:09:23 +0000 (11:09 -0700)
commitfed1db33fe85573487a4732d628ac5afdb5dc776
tree8eac764bb5ef07d472e9434ab1ba09f9605f5ade
parent252a52aa4fa22a668f019e55b3aac3ff71ec1c29
IPoIB: Set pkt_type correctly for multicast packets (fix IGMP breakage)

IGMP processing is broken because the IPOIB does not set the
skb->pkt_type the right way for multicast traffic.  All incoming
packets are set to PACKET_HOST which means that igmp_recv() will
ignore the IGMP broadcasts/multicasts.

This in turn means that the IGMP timers are firing and are sending
information about multicast subscriptions unnecessarily.  In a large
private network this can cause traffic spikes.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c