Skip to content
Commit 00175aec authored by Amir Vadai's avatar Amir Vadai Committed by David S. Miller
Browse files

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: default avatarJiri Pirko <jiri@mellanox.com>
Acked-by: default avatarJohn Fastabend <john.r.fastabend@intel.com>
Suggested-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarAmir Vadai <amir@vadai.me>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8de2d793
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment