All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: question about traffic control in for input (ingress) traffic
Date: Wed, 03 Jul 2013 22:49:50 +0000	[thread overview]
Message-ID: <51D4AA8E.9090905@gmail.com> (raw)
In-Reply-To: <CAGXs5wXUOenZZSHC3NVLS=AQELS8158e7rs9shbXph01=Qy8sA@mail.gmail.com>

Kevin Wilson wrote:
> Hello,
> I know that traffic control is usually used for output.
> I want to learn  traffic control kernel implementation for input
> (ingress) traffic
> I made several tries with the tc userspace tool to add
> traffic control entries, but I did not succeed.

You can only add filters/policers to ingress, if you want to shape you 
have to use the ifb device and redirect traffic to it with a filter.

eg.

modprobe ifb
tc qdisc add dev eth0 ingress
ip link set ifb0 up

tc filter add dev eth0 parent ffff: \
protocol ip prio 10 u32 match u32 0 0 flowid 1:0 \
action mirred egress redirect dev ifb0

Then you add normal qdiscs etc to ifb0 just like you would for output.


      reply	other threads:[~2013-07-03 22:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 10:08 question about traffic control in for input (ingress) traffic Kevin Wilson
2013-07-03 22:49 ` Andy Furniss [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=51D4AA8E.9090905@gmail.com \
    --to=adf.lists@gmail.com \
    --cc=lartc@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.