forked from Minki/linux
net: sun: optimization of addr compare
Use possibly more efficient ether_addr_equal to instead of memcmp. Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Ding Tianhong <dingtianhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9116d7b06d
commit
00fa4ce9fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user