History log of /external/iproute2/tc/m_vlan.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d19f72f7898a78ef76628833c204afb96f9a05cd 16-May-2017 Jiri Pirko <jiri@mellanox.com> tc/actions: introduce support for goto chain action

Allow user to set control action "goto" with filter chain index as
a parameter.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
/external/iproute2/tc/m_vlan.c
e67aba559581143f9bc34f0706b0c3feeeab08fa 16-May-2017 Jiri Pirko <jiri@mellanox.com> tc: actions: add helpers to parse and print control actions

Each tc action is terminated by a control action. Each action parses and
prints then intividually. Introduce set of helpers and allow to share
this code.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
/external/iproute2/tc/m_vlan.c
530753184a21684c600ca137c123a5740817e570 13-Dec-2016 Roman Mashak <mrv@mojatatu.com> tc: pass correct conversion specifier to print 'unsigned int' action index.

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
/external/iproute2/tc/m_vlan.c
4654173e90833a84c998ee2e6850cb90bdaf4f7d 22-Sep-2016 Shmulik Ladkani <shmulik.ladkani@gmail.com> tc: m_vlan: Add vlan modify action

The 'vlan modify' action allows to replace an existing 802.1q tag
according to user provided settings.
It accepts same arguments as the 'vlan push' action.

For example, this replaces vid 6 with vid 5:

# tc filter add dev veth0 parent ffff: pref 1 protocol 802.1q \
basic match 'meta(vlan mask 0xfff eq 6)' \
action vlan modify id 5 continue

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
/external/iproute2/tc/m_vlan.c
0e43ed9deae89f70b1babbe7c1cdc2653bb4124c 01-Sep-2016 Hadar Hen Zion <hadarh@mellanox.com> tc: m_vlan: Add priority option to push vlan action

The current vlan push action supports only vid and protocol options.
Add priority option.

Example script that adds vlan push action with vid and priority:

tc filter add dev veth0 protocol ip parent ffff: \
flower \
indev veth0 \
action vlan push id 100 priority 5

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
/external/iproute2/tc/m_vlan.c
709320061154c2d381aa91fc6a135eea96b32672 23-Jul-2016 Phil Sutter <phil@nwl.cc> tc: util: No need for action_n2a() to be reentrant

This allows to remove some buffers here and there. While at it, make it
return a const value.

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/tc/m_vlan.c
69f5aff63c770bd95607b33d5ee8ee183dc13a64 23-Jul-2016 Phil Sutter <phil@nwl.cc> tc: use action_a2n() everywhere

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/tc/m_vlan.c
43726b750a398323a6becdfbea45ae502a180ea8 07-May-2016 Jamal Hadi Salim <jhs@mojatatu.com> tc: don't ignore ok as an action branch

This is what used to happen before:

tc filter add dev tap1 parent ffff: protocol 0xfefe prio 10 \
u32 match u32 0 0 flowid 1:16 \
action ife decode allow mark ok

tc -s filter ls dev tap1 parent ffff:
filter protocol [65278] pref 10 u32
filter protocol [65278] pref 10 u32 fh 800: ht divisor 1
filter protocol [65278] pref 10 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 1:16
match 00000000/00000000 at 0
action order 1: ife decode action pipe
index 2 ref 1 bind 1 installed 4 sec used 4 sec
type: 0x0
Metadata: allow mark
Action statistics:
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0

action order 2: gact action pass
random type none pass val 0
index 1 ref 1 bind 1 installed 4 sec used 4 sec
Action statistics:
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0

Note the extra action added at the end..

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
/external/iproute2/tc/m_vlan.c
51011dac361ee491463fa4ba5a5927e6442b6c68 22-Mar-2016 Phil Sutter <phil@nwl.cc> tc/m_vlan.c: mention CONTROL option in help text

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
/external/iproute2/tc/m_vlan.c
32a121cba257954963fbdd56a1c4567c2efc779a 21-Mar-2016 Stephen Hemminger <stephen@networkplumber.org> tc: code cleanup

Use checkpatch to fix whitespace and other style issues.
/external/iproute2/tc/m_vlan.c
564663b4ca6237bb55d62c3977ac7afabb100da3 11-Jan-2015 Jamal Hadi Salim <jhs@mojatatu.com> actions: Get vlan action to work in pipeline

When specified in a graph such as:
action vlan ... action foobar
the vlan action chewed more than it can swallow

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
/external/iproute2/tc/m_vlan.c
8b1c0216d8dc559d0add4fc683735f280c77f678 21-Nov-2014 Jiri Pirko <jiri@resnulli.us> tc: add support for vlan tc action

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: Cong Wang <cwang@twopensource.com>
/external/iproute2/tc/m_vlan.c