From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757373Ab3LWNrZ (ORCPT ); Mon, 23 Dec 2013 08:47:25 -0500 Received: from nbd.name ([46.4.11.11]:33950 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752138Ab3LWNrX (ORCPT ); Mon, 23 Dec 2013 08:47:23 -0500 Message-ID: <52B83EE1.4040705@openwrt.org> Date: Mon, 23 Dec 2013 14:47:13 +0100 From: Felix Fietkau User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Ding Tianhong , "John W. Linville" , linux-wireless@vger.kernel.org, Netdev , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 19/21] wireless: slight optimization of addr compare References: <52B7C600.8030907@huawei.com> In-Reply-To: <52B7C600.8030907@huawei.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2013-12-23 06:11, Ding Tianhong wrote: > Use the recently added and possibly more efficient > ether_addr_equal_unaligned to instead of memcmp. It looks to me like all of these (including the ones in the other similar patches) are in places, where the address data is aligned to at least 16 bit. Because of this, using ether_addr_equal instead of ether_addr_equal_unaligned would be much better for platforms without CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS. - Felix