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)
commit00175aec941e9c306d8a5ce930b2d91f7c04468c
treed269c99cb155b40765f5687154098063e72f56ae
parent8de2d793daf784f8f109565bcc023a6d198bad85
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