]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: fix batch force option
authorVlad Buslov <vladbu@mellanox.com>
Wed, 20 Jun 2018 07:24:21 +0000 (10:24 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 20 Jun 2018 16:32:36 +0000 (09:32 -0700)
commitb133392468d1f404077a8f3554d1f63d48bb45e8
tree7aceaae89886b268133455b4155e53b3669ae1d6
parent46c16a5d1e39ccdc96b53e5cb20e23c1ea65191f
tc: fix batch force option

When sending accumulated compound command results an error, check 'force'
option before exiting. Move return code check after putting batch bufs and
freeing iovs to prevent memory leak. Break from loop, instead of returning
error code to allow cleanup at the end of batch function. Don't reset ret
code on each iteration.

Fixes: 485d0c6001c4 ("tc: Add batchsize feature for filter and actions")
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Chris Mi <chrism@mellanox.com>
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/tc.c