Skip to content

Commit

Permalink
net/sched: move struct action_ops definition out of ifdef
Browse files Browse the repository at this point in the history
The type definition should be visible even in configurations not using
CONFIG_NET_CLS_ACT.

Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pedro Tammela authored and David S. Miller committed Dec 9, 2022
1 parent 0bdff11 commit 2a7d228
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/net/act_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ static inline enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats)
return hw_stats;
}

#ifdef CONFIG_NET_CLS_ACT

#define ACT_P_CREATED 1
#define ACT_P_DELETED 1

typedef void (*tc_action_priv_destructor)(void *priv);

struct tc_action_ops {
Expand Down Expand Up @@ -140,6 +135,11 @@ struct tc_action_ops {
struct netlink_ext_ack *extack);
};

#ifdef CONFIG_NET_CLS_ACT

#define ACT_P_CREATED 1
#define ACT_P_DELETED 1

struct tc_action_net {
struct tcf_idrinfo *idrinfo;
const struct tc_action_ops *ops;
Expand Down

0 comments on commit 2a7d228

Please sign in to comment.