]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/net/dsa/sja1105/sja1105_vl.h
1 /* SPDX-License-Identifier: GPL-2.0 */
9 #if IS_ENABLED(CONFIG_NET_DSA_SJA1105_VL)
11 int sja1105_vl_redirect(struct sja1105_private
*priv
, int port
,
12 struct netlink_ext_ack
*extack
, unsigned long cookie
,
13 struct sja1105_key
*key
, unsigned long destports
,
16 int sja1105_vl_delete(struct sja1105_private
*priv
, int port
,
17 struct sja1105_rule
*rule
,
18 struct netlink_ext_ack
*extack
);
20 int sja1105_vl_gate(struct sja1105_private
*priv
, int port
,
21 struct netlink_ext_ack
*extack
, unsigned long cookie
,
22 struct sja1105_key
*key
, u32 index
, s32 prio
,
23 u64 base_time
, u64 cycle_time
, u64 cycle_time_ext
,
24 u32 num_entries
, struct action_gate_entry
*entries
);
26 int sja1105_vl_stats(struct sja1105_private
*priv
, int port
,
27 struct sja1105_rule
*rule
, struct flow_stats
*stats
,
28 struct netlink_ext_ack
*extack
);
32 static inline int sja1105_vl_redirect(struct sja1105_private
*priv
, int port
,
33 struct netlink_ext_ack
*extack
,
35 struct sja1105_key
*key
,
36 unsigned long destports
,
39 NL_SET_ERR_MSG_MOD(extack
, "Virtual Links not compiled in");
43 static inline int sja1105_vl_delete(struct sja1105_private
*priv
,
44 int port
, struct sja1105_rule
*rule
,
45 struct netlink_ext_ack
*extack
)
47 NL_SET_ERR_MSG_MOD(extack
, "Virtual Links not compiled in");
51 static inline int sja1105_vl_gate(struct sja1105_private
*priv
, int port
,
52 struct netlink_ext_ack
*extack
,
54 struct sja1105_key
*key
, u32 index
, s32 prio
,
55 u64 base_time
, u64 cycle_time
,
56 u64 cycle_time_ext
, u32 num_entries
,
57 struct action_gate_entry
*entries
)
59 NL_SET_ERR_MSG_MOD(extack
, "Virtual Links not compiled in");
63 static inline int sja1105_vl_stats(struct sja1105_private
*priv
, int port
,
64 struct sja1105_rule
*rule
,
65 struct flow_stats
*stats
,
66 struct netlink_ext_ack
*extack
)
68 NL_SET_ERR_MSG_MOD(extack
, "Virtual Links not compiled in");
72 #endif /* IS_ENABLED(CONFIG_NET_DSA_SJA1105_VL) */
74 #endif /* _SJA1105_VL_H */