Return-path: Received: from cantor2.suse.de ([195.135.220.15]:33545 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585Ab3LJJ7m (ORCPT ); Tue, 10 Dec 2013 04:59:42 -0500 Date: Tue, 10 Dec 2013 10:59:37 +0100 From: Michal Kubecek To: Pavel Machek Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Luciano Coelho , "John W. Linville" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, freemangordon@abv.bg, aaro.koskinen@iki.fi, sre@ring0.de, joni.lapilainen@gmail.com, Johannes Berg , Felipe Contreras , David Gnedt Subject: Re: [PATCH v2 04/16] wl1251: implement hardware ARP filtering Message-ID: <20131210095937.GC9741@unicorn.suse.cz> (sfid-20131210_110002_222508_7DF075D8) References: <1382819655-30430-1-git-send-email-pali.rohar@gmail.com> <1386494714-21070-1-git-send-email-pali.rohar@gmail.com> <1386494714-21070-5-git-send-email-pali.rohar@gmail.com> <20131210092916.GD22756@amd.pavel.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20131210092916.GD22756@amd.pavel.ucw.cz> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Dec 10, 2013 at 10:29:16AM +0100, Pavel Machek wrote: > > > > +int wl1251_acx_arp_ip_filter(struct wl1251 *wl, bool enable, __be32 address) > > +{ > > + struct wl1251_acx_arp_filter *acx; > > + int ret; > > Is it good idea to use be32 for IP address? AFAICT IPv4 addresses > really don't have edianity. Perhaps u32 is better? If they are known to be in network byte ordering, they do (as NBO is the same as BE). Michal Kubecek