]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: Macro instead of CONFIG_NET_CLS_ACT ifdef
authorAmir Vadai <amir@vadai.me>
Tue, 8 Mar 2016 10:42:31 +0000 (12:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2016 21:24:02 +0000 (16:24 -0500)
commite62523b0ff8da170854ba6c48559479ce20b3763
treed269c99cb155b40765f5687154098063e72f56ae
parent9b35ae87fc0913cafc22c36940e8cdeeb29cdaa6
net/sched: Macro instead of CONFIG_NET_CLS_ACT ifdef

Introduce the macros tc_no_actions and tc_for_each_action to make code
clearer.
Extracted struct tc_action out of the ifdef to make calls to
is_tcf_gact_shot() and similar functions valid, even when it is a nop.

Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Suggested-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Amir Vadai <amir@vadai.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
include/net/tc_act/tc_gact.h