]> git.proxmox.com Git - mirror_iproute2.git/commit
m_mpls: test the 'mac_push' action after 'modify'
authorGuillaume Nault <gnault@redhat.com>
Thu, 22 Oct 2020 09:11:44 +0000 (11:11 +0200)
committerDavid Ahern <dsahern@gmail.com>
Sun, 25 Oct 2020 21:07:13 +0000 (15:07 -0600)
commitf1298d76606a581cf3ab9ec45a92b41e72a6b4f0
treefcb41649f64b3763fc6e63df2b7fd551759ff5d9
parent2b7a768408a18744f7b1b6c587298fa0d569f646
m_mpls: test the 'mac_push' action after 'modify'

Commit 02a261b5ba1c ("m_mpls: add mac_push action") added a matches()
test for the "mac_push" string before the test for "modify".
This changes the previous behaviour as 'action m' used to match
"modify" while it now matches "mac_push".

Revert to the original behaviour by moving the "mac_push" test after
"modify".

Fixes: 02a261b5ba1c ("m_mpls: add mac_push action")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/m_mpls.c