Skip to content

Commit 2a7d228

Browse files
tammeladavem330
authored andcommitted
net/sched: move struct action_ops definition out of ifdef
The type definition should be visible even in configurations not using CONFIG_NET_CLS_ACT. Signed-off-by: Pedro Tammela <[email protected]> Reviewed-by: Jamal Hadi Salim <[email protected]> Reviewed-by: Victor Nogueira <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0bdff11 commit 2a7d228

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/net/act_api.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ static inline enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats)
101101
return hw_stats;
102102
}
103103

104-
#ifdef CONFIG_NET_CLS_ACT
105-
106-
#define ACT_P_CREATED 1
107-
#define ACT_P_DELETED 1
108-
109104
typedef void (*tc_action_priv_destructor)(void *priv);
110105

111106
struct tc_action_ops {
@@ -140,6 +135,11 @@ struct tc_action_ops {
140135
struct netlink_ext_ack *extack);
141136
};
142137

138+
#ifdef CONFIG_NET_CLS_ACT
139+
140+
#define ACT_P_CREATED 1
141+
#define ACT_P_DELETED 1
142+
143143
struct tc_action_net {
144144
struct tcf_idrinfo *idrinfo;
145145
const struct tc_action_ops *ops;

0 commit comments

Comments
 (0)