Commit 00fa4ce9 authored by dingtianhong's avatar dingtianhong Committed by David S. Miller
Browse files

net: sun: optimization of addr compare

Use possibly more efficient ether_addr_equal
to instead of memcmp.

Cc: "David S. Miller" <>
Signed-off-by: default avatarDing Tianhong <>
Signed-off-by: default avatarDavid S. Miller <>
parent 9116d7b0
......@@ -751,7 +751,7 @@ static struct vnet_mcast_entry *__vnet_mc_find(struct vnet *vp, u8 *addr)
struct vnet_mcast_entry *m;
for (m = vp->mcast_list; m; m = m->next) {
if (!memcmp(m->addr, addr, ETH_ALEN))
if (ether_addr_equal(m->addr, addr))
return m;
return NULL;
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