diff options
author | Davide Caratti <dcaratti@redhat.com> | 2018-06-19 15:45:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-20 09:03:58 +0900 |
commit | cbf56c29624fa056a0c1c3d177e67aa51a7fd8d6 (patch) | |
tree | 7126a4b3da3a1044997a1e258395a71080cc7dd4 /drivers/net | |
parent | 0a889b9404c084c6fd145020c939a8f688b3e058 (diff) | |
download | linux-cbf56c29624fa056a0c1c3d177e67aa51a7fd8d6.tar.bz2 |
net/sched: act_ife: preserve the action control in case of error
in the following script
# tc actions add action ife encode allow prio pass index 42
# tc actions replace action ife encode allow tcindex drop index 42
the action control should remain equal to 'pass', if the kernel failed
to replace the TC action. Pospone the assignment of the action control,
to ensure it is not overwritten in the error path of tcf_ife_init().
Fixes: ef6980b6becb ("introduce IFE action")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions