From: Patrick McHardy <kaber@trash.net>
To: Chris Friesen <cfriesen@nortel.com>
Cc: netdev@vger.kernel.org
Subject: Re: relationship between ingress policer and netfilter hooks?
Date: Wed, 03 Jun 2009 09:18:55 +0200 [thread overview]
Message-ID: <4A2623DF.5040800@trash.net> (raw)
In-Reply-To: <4A256E55.9090309@nortel.com>
Chris Friesen wrote:
> Patrick McHardy wrote:
>> Chris Friesen wrote:
>>
>>> Hi all,
>>>
>>> Can someone tell me where the hook is for incoming packets to be sent
>>> through the ingress policer?
>>>
>>> In particular, I'm trying to find out how the ingress traffic shaping
>>> hook relates to the various netfilter hooks so that I can set them up to
>>> behave nicely together.
>
>> They're not related at all. The ingress qdisc is hooked at
>> net/dev/core.c:handle_ing().
>
> Thanks. Based on that the shaping is done before any of the netfilter
> hooks, which is what I was trying to figure out.
Correct.
> On a related note...the deliver_skb() call right before the call to
> handle_ing()--is that to allow packet sockets to receive everything that
> arrives on the wire even if some of it may be dropped later?
Yes, its the final delivery for ptype_all handlers.
prev parent reply other threads:[~2009-06-03 7:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-02 15:30 relationship between ingress policer and netfilter hooks? Chris Friesen
2009-06-02 17:04 ` Patrick McHardy
2009-06-02 18:24 ` Chris Friesen
2009-06-03 7:18 ` Patrick McHardy [this message]
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=4A2623DF.5040800@trash.net \
--to=kaber@trash.net \
--cc=cfriesen@nortel.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).