]> git.ipfire.org Git - thirdparty/iproute2.git/commit
m_mirred: don't bail if the control action is missing
authorPaolo Abeni <pabeni@redhat.com>
Mon, 20 May 2019 09:56:52 +0000 (11:56 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 22 May 2019 18:51:31 +0000 (11:51 -0700)
commit6eccf7ecdb010a90e5271942748ef4338ddb61ae
treea78c3a40defae9b1c174ae9e6857f166f9405b0f
parentcd35c954234eb8773192ea8a503f4fcf76e2aa83
m_mirred: don't bail if the control action is missing

The mirred act admits an optional control action, defaulting
to TC_ACT_PIPE. The parsing code currently emits an error message
if the control action is not provided on the command line, even
if the command itself completes with no error.

This change shuts down the error message, using the appropriate
parsing helper.

Fixes: e67aba559581 ("tc: actions: add helpers to parse and print control actions")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_mirred.c