netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH 0/6] Fix broken late binding of actions
@ 2016-05-08 17:16 Jamal Hadi Salim
  2016-05-08 17:16 ` [net-next PATCH 1/6] tc vlan action fix late binding Jamal Hadi Salim
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Jamal Hadi Salim @ 2016-05-08 17:16 UTC (permalink / raw)
  To: davem; +Cc: netdev, Jamal Hadi Salim

From: Jamal Hadi Salim <jhs@mojatatu.com>

Some actions were broken in allowing for late binding of actions.
Late binding workflow is as follows:
a) create an action and provide all necessary parameters for it
Optionally provide an index or let the kernel give you one.
Example:
sudo tc actions add action police rate 1kbit burst 90k drop index 1

b) later on bind to the pre-created action from a filter definition
by merely specifying the index.
Example:
sudo tc filter add dev lo parent ffff: protocol ip prio 8 \
u32 match ip src 127.0.0.8/32 flowid 1:8 action police index 1


Jamal Hadi Salim (6):
  tc vlan action fix late binding
  tc ipt action fix late binding
  tc mirred action fix late binding
  tc simple action fix late binding
  tc skbedit action fix late binding
  tc ife action fix late binding

 net/sched/act_ife.c     | 16 +++++++++++-----
 net/sched/act_ipt.c     | 19 ++++++++++++-------
 net/sched/act_mirred.c  | 22 +++++++++++++++-------
 net/sched/act_simple.c  | 18 ++++++++++++------
 net/sched/act_skbedit.c | 22 +++++++++++++++-------
 net/sched/act_vlan.c    | 22 ++++++++++++++++------
 6 files changed, 81 insertions(+), 38 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-05-08 17:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-08 17:16 [net-next PATCH 0/6] Fix broken late binding of actions Jamal Hadi Salim
2016-05-08 17:16 ` [net-next PATCH 1/6] tc vlan action fix late binding Jamal Hadi Salim
2016-05-08 17:16 ` [net-next PATCH 2/6] tc ipt " Jamal Hadi Salim
2016-05-08 17:16 ` [net-next PATCH 3/6] tc mirred " Jamal Hadi Salim
2016-05-08 17:16 ` [net-next PATCH 4/6] tc simple " Jamal Hadi Salim
2016-05-08 17:16 ` [net-next PATCH 5/6] tc skbedit " Jamal Hadi Salim
2016-05-08 17:16 ` [net-next PATCH 6/6] tc ife " Jamal Hadi Salim
2016-05-08 17:21 ` [net-next PATCH 0/6] Fix broken late binding of actions Jamal Hadi Salim

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).