[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5181B927.5010407@openwrt.org>
Date: Thu, 02 May 2013 02:53:59 +0200
From: Felix Fietkau <nbd@...nwrt.org>
To: Stephen Hemminger <stephen@...workplumber.org>
CC: Krishna Chaitanya <chaitanya.mgit@...il.com>,
linux-wireless <linux-wireless@...r.kernel.org>,
Sebastian Gottschall <s.gottschall@...wrt.com>,
Johannes Berg <johannes@...solutions.net>,
netdev <netdev@...r.kernel.org>
Subject: Re: Regression in 3.9 caused by "bridge: respect RFC2863 operational
state"
On 2013-05-02 12:49 AM, Stephen Hemminger wrote:
> On Wed, 01 May 2013 23:06:16 +0200
> Felix Fietkau <nbd@...nwrt.org> 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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists