From: dingtianhong Date: Mon, 30 Dec 2013 07:41:02 +0000 (+0800) Subject: net: vxge: slight optimization of addr compare X-Git-Tag: v3.14-rc1~94^2~340^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f75d191b36ab3606e9588848e0f8f4fec228ecad;p=platform%2Fkernel%2Flinux-stable.git net: vxge: slight optimization of addr compare Use possibly more efficient ether_addr_equal to instead of memcmp. Cc: Jon Mason Signed-off-by: Ding Tianhong Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index 11b1c70..6eae216 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c @@ -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)