]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: use tcf_exts_has_actions instead of exts->nr_actions
authorJiri Pirko <jiri@mellanox.com>
Fri, 4 Aug 2017 12:29:03 +0000 (14:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:21:24 +0000 (11:21 -0700)
commit17af45a611aadf7a19dd25365339c29ddecdd4bb
treeb3d6e2c408c01b1dcfdc39d5ee4c687489979259
parentc7ba9d9f761b7af4efa66103e08e30f718f8d0ff
net: sched: use tcf_exts_has_actions instead of exts->nr_actions

For check in tcf_exts_dump use tcf_exts_has_actions helper instead
of exts->nr_actions for checking if there are any actions present.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c