From: Felix Fietkau <nbd-p3rKhJxN3npAfugRpC6u6w@public•gmane.org>
To: Stephen Hemminger
<stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public•gmane.org>
Cc: Krishna Chaitanya
<chaitanya.mgit-Re5JQEeQqe8AvxtiuMwx3w@public•gmane.org>,
linux-wireless
<linux-wireless-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>,
Sebastian Gottschall
<s.gottschall-t37Kgv3TaIPQT0dZR+AlfA@public•gmane.org>,
Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public•gmane.org>,
netdev <netdev-u79uwXL29TY76Z2rM5mHXA@public•gmane.org>
Subject: Re: Regression in 3.9 caused by "bridge: respect RFC2863 operational state"
Date: Thu, 02 May 2013 02:53:59 +0200 [thread overview]
Message-ID: <5181B927.5010407@openwrt.org> (raw)
In-Reply-To: <20130501154904.0ea31991-We1ePj4FEcvRI77zikRAJc56i+j3xesD0e7PPNI6Mm0@public.gmane.org>
On 2013-05-02 12:49 AM, Stephen Hemminger wrote:
> On Wed, 01 May 2013 23:06:16 +0200
> Felix Fietkau <nbd-p3rKhJxN3npAfugRpC6u6w@public•gmane.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 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
next prev parent reply other threads:[~2013-05-02 0:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 19:02 Regression in 3.9 caused by "bridge: respect RFC2863 operational state" Felix Fietkau
[not found] ` <518166C5.4080904-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2013-05-01 19:49 ` Krishna Chaitanya
[not found] ` <CAOaVG179Rx_JfV99mbjWhwQTALb5gh+2_WVFWDSbngA0qkzoGw@mail.gmail.com>
[not found] ` <CAOaVG179Rx_JfV99mbjWhwQTALb5gh+2_WVFWDSbngA0qkzoGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-01 21:06 ` Felix Fietkau
[not found] ` <518183C8.8050606-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2013-05-01 22:49 ` Stephen Hemminger
[not found] ` <20130501154904.0ea31991-We1ePj4FEcvRI77zikRAJc56i+j3xesD0e7PPNI6Mm0@public.gmane.org>
2013-05-02 0:53 ` Felix Fietkau [this message]
[not found] <CAFuUQkhHsRZMnNYBbVZU0=BcAKMEktzYgPv6oc=CMFd7MFDi6g@mail.gmail.com>
2015-12-04 2:31 ` YanBo
[not found] ` <CAFuUQkjm3RFnrzWWSvbnYFC8gMnbX7C4bP_x0+2bREYumcoJyg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-19 15:45 ` Shajakhan, Mohammed Shafi (Mohammed Shafi)
[not found] ` <439966a35f064c7690f2ccbe7296c552-uFOy1J/eYsFdSXZW2pRUXqRtKmQZhJ7pQQ4Iyu8u01E@public.gmane.org>
2016-01-19 21:10 ` YanBo
[not found] ` <CAFuUQkhHsRZMnNYBbVZU0=BcAKMEktzYgPv6oc=CMFd7MFDi6g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-19 21:48 ` Stephen Hemminger
2016-01-19 21:55 ` Felix Fietkau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5181B927.5010407@openwrt.org \
--to=nbd-p3rkhjxn3npafugrpc6u6w@public$(echo .)gmane.org \
--cc=chaitanya.mgit-Re5JQEeQqe8AvxtiuMwx3w@public$(echo .)gmane.org \
--cc=johannes-cdvu00un1VgdHxzADdlk8Q@public$(echo .)gmane.org \
--cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public$(echo .)gmane.org \
--cc=s.gottschall-t37Kgv3TaIPQT0dZR+AlfA@public$(echo .)gmane.org \
--cc=stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public$(echo .)gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox