Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

net: vxge: slight optimization of addr compare



Use possibly more efficient ether_addr_equal
to instead of memcmp.

Cc: Jon Mason <jdmason@kudzu.us>
Signed-off-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7ced5440
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1430,7 +1430,7 @@ vxge_search_mac_addr_in_da_table(struct vxge_vpath *vpath, struct macInfo *mac)
		return status;
	}

	while (memcmp(mac->macaddr, macaddr, ETH_ALEN)) {
	while (!ether_addr_equal(mac->macaddr, macaddr)) {
		status = vxge_hw_vpath_mac_addr_get_next(vpath->handle,
				macaddr, macmask);
		if (status != VXGE_HW_OK)