From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nbd.name ([46.4.11.11]:53932 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753830Ab3EBAyD (ORCPT ); Wed, 1 May 2013 20:54:03 -0400 Message-ID: <5181B927.5010407@openwrt.org> (sfid-20130502_025409_473336_8653D954) Date: Thu, 02 May 2013 02:53:59 +0200 From: Felix Fietkau MIME-Version: 1.0 To: Stephen Hemminger CC: Krishna Chaitanya , linux-wireless , Sebastian Gottschall , Johannes Berg , netdev Subject: Re: Regression in 3.9 caused by "bridge: respect RFC2863 operational state" References: <518166C5.4080904@openwrt.org> <518183C8.8050606@openwrt.org> <20130501154904.0ea31991@nehalam.linuxnetplumber.net> In-Reply-To: <20130501154904.0ea31991@nehalam.linuxnetplumber.net> Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 2013-05-02 12:49 AM, Stephen Hemminger wrote: > On Wed, 01 May 2013 23:06:16 +0200 > Felix Fietkau wrote: > >> On 2013-05-01 10:21 PM, Stephen Hemminger wrote: >> > What about using AF_PACKET bound to underlying wireless device and the >> > packet type. You can even use BPF to filter. >> As far as I know, AF_PACKET only works when not binding it to the packet >> type (otherwise it get stolen by the rx handler). > > You can do AF_PACKET and it gets handle before rx_handler. If I don't bind it to a protocol, it ends up in ptype_all, if I do, it ends up in &ptype_base. ptype_all is processed before the rx_handler, ptype_base is processed after the rx handler. Hooking into ptype_all wastes tons of CPU cycles, hooking into ptype_base does not solve the problem. - Felix From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Fietkau Subject: Re: Regression in 3.9 caused by "bridge: respect RFC2863 operational state" Date: Thu, 02 May 2013 02:53:59 +0200 Message-ID: <5181B927.5010407@openwrt.org> References: <518166C5.4080904@openwrt.org> <518183C8.8050606@openwrt.org> <20130501154904.0ea31991@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Krishna Chaitanya , linux-wireless , Sebastian Gottschall , Johannes Berg , netdev To: Stephen Hemminger Return-path: In-Reply-To: <20130501154904.0ea31991-We1ePj4FEcvRI77zikRAJc56i+j3xesD0e7PPNI6Mm0@public.gmane.org> Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 2013-05-02 12:49 AM, Stephen Hemminger wrote: > On Wed, 01 May 2013 23:06:16 +0200 > Felix Fietkau wrote: > >> On 2013-05-01 10:21 PM, Stephen Hemminger wrote: >> > What about using AF_PACKET bound to underlying wireless device and the >> > packet type. You can even use BPF to filter. >> As far as I know, AF_PACKET only works when not binding it to the packet >> type (otherwise it get stolen by the rx handler). > > You can do AF_PACKET and it gets handle before rx_handler. If I don't bind it to a protocol, it ends up in ptype_all, if I do, it ends up in &ptype_base. ptype_all is processed before the rx_handler, ptype_base is processed after the rx handler. Hooking into ptype_all wastes tons of CPU cycles, hooking into ptype_base does not solve the problem. - Felix -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html