All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chris Friesen" <cfriesen@nortel.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netdev@vger.kernel.org
Subject: Re: relationship between ingress policer and netfilter hooks?
Date: Tue, 02 Jun 2009 12:24:21 -0600	[thread overview]
Message-ID: <4A256E55.9090309@nortel.com> (raw)
In-Reply-To: <4A255BAC.8070406@trash.net>

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.

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?

Chris

  reply	other threads:[~2009-06-02 18:24 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 [this message]
2009-06-03  7:18     ` Patrick McHardy

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=4A256E55.9090309@nortel.com \
    --to=cfriesen@nortel.com \
    --cc=kaber@trash.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.