Return-path: Received: from smtp.nokia.com ([192.100.122.233]:29392 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752952Ab0EZLN2 (ORCPT ); Wed, 26 May 2010 07:13:28 -0400 Subject: Re: [RFC PATCH] mac80211: Add support for hardware ARP query filtering From: Juuso Oikarinen To: ext Johannes Berg Cc: "linux-wireless@vger.kernel.org" In-Reply-To: <1274778802.3635.30.camel@jlt3.sipsolutions.net> References: <1274773685-11168-1-git-send-email-juuso.oikarinen@nokia.com> <1274778802.3635.30.camel@jlt3.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Date: Wed, 26 May 2010 14:14:27 +0300 Message-ID: <1274872467.5277.1783.camel@wimaxnb.nmp.nokia.com> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2010-05-25 at 11:13 +0200, ext Johannes Berg wrote: > On Tue, 2010-05-25 at 10:48 +0300, Juuso Oikarinen wrote: > > You should get the right include too. > > > +static inline int drv_configure_ip_filter(struct ieee80211_hw *hw, > > + struct in_ifaddr *ifa_list) > > +{ > > + struct ieee80211_local *local = hw_to_local(hw); > > + int ret = 0; > > + > > + if (local->ops->configure_ip_filter) > > + ret = local->ops->configure_ip_filter(hw, ifa_list); > > + return ret; > > +} > > Tracing would be nice, you should even able able to trace all addresses > in a variable-length array. > I looked into the tracing. I still prefer using the ifa_list directly as argument to the driver, and not copy the addresses in it to another array. The ifa_list is a linked list, and does AFAIK does not directly fit into the tracing infrasturcture. Hence I added a trace for this op, but omitted tracing the IP addresses. I will sent an RFC patch with this shortly. -Juuso > johannes >