* question about traffic control in for input (ingress) traffic
@ 2013-07-03 10:08 Kevin Wilson
2013-07-03 22:49 ` Andy Furniss
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2013-07-03 10:08 UTC (permalink / raw)
To: lartc
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.
What I mean is that in the kernel, in the ingress filter method
ing_filter(), I always reach with noop_qdisc, no matter what I try
with the tc tool:
Any ideas? can I register the route scheduler for the Rx path ?
In http://lxr.free-electrons.com/source/net/core/dev.c
static int ing_filter(struct sk_buff *skb, struct netdev_queue *rxq)
{
...
struct Qdisc *q;
q = rxq->qdisc;
if (q != &noop_qdisc) {
}
return result;
}
regards,
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: question about traffic control in for input (ingress) traffic
2013-07-03 10:08 question about traffic control in for input (ingress) traffic Kevin Wilson
@ 2013-07-03 22:49 ` Andy Furniss
0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2013-07-03 22:49 UTC (permalink / raw)
To: lartc
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-03 22:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-03 10:08 question about traffic control in for input (ingress) traffic Kevin Wilson
2013-07-03 22:49 ` Andy Furniss
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.