Commit 3e4aa12f authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

ipoib: remove addrlen check for mc addresses

Finally this bit can be removed. Currently, after the bonding driver is
changed/fixed (32a806c1 net-next-2.6),
that's not possible for an addr with different length than dev->addr_len
to be present in list. Removing this check as in new mc_list there will be
no addrlen in the record.
Signed-off-by: default avatarJiri Pirko <jpirko@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 664ffe80
...@@ -767,11 +767,8 @@ void ipoib_mcast_dev_flush(struct net_device *dev) ...@@ -767,11 +767,8 @@ void ipoib_mcast_dev_flush(struct net_device *dev)
} }
} }
static int ipoib_mcast_addr_is_valid(const u8 *addr, unsigned int addrlen, static int ipoib_mcast_addr_is_valid(const u8 *addr, const u8 *broadcast)
const u8 *broadcast)
{ {
if (addrlen != INFINIBAND_ALEN)
return 0;
/* reserved QPN, prefix, scope */ /* reserved QPN, prefix, scope */
if (memcmp(addr, broadcast, 6)) if (memcmp(addr, broadcast, 6))
return 0; return 0;
...@@ -815,7 +812,6 @@ void ipoib_mcast_restart_task(struct work_struct *work) ...@@ -815,7 +812,6 @@ void ipoib_mcast_restart_task(struct work_struct *work)
union ib_gid mgid; union ib_gid mgid;
if (!ipoib_mcast_addr_is_valid(mclist->dmi_addr, if (!ipoib_mcast_addr_is_valid(mclist->dmi_addr,
mclist->dmi_addrlen,
dev->broadcast)) dev->broadcast))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment