]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/net/dsa/sja1105/sja1105_vl.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright 2020, NXP Semiconductors
7 #if IS_ENABLED(CONFIG_NET_DSA_SJA1105_VL)
9 int sja1105_vl_redirect(struct sja1105_private
*priv
, int port
,
10 struct netlink_ext_ack
*extack
, unsigned long cookie
,
11 struct sja1105_key
*key
, unsigned long destports
,
14 int sja1105_vl_delete(struct sja1105_private
*priv
, int port
,
15 struct sja1105_rule
*rule
,
16 struct netlink_ext_ack
*extack
);
20 static inline int sja1105_vl_redirect(struct sja1105_private
*priv
, int port
,
21 struct netlink_ext_ack
*extack
,
23 struct sja1105_key
*key
,
24 unsigned long destports
,
27 NL_SET_ERR_MSG_MOD(extack
, "Virtual Links not compiled in");
31 static inline int sja1105_vl_delete(struct sja1105_private
*priv
,
32 int port
, struct sja1105_rule
*rule
,
33 struct netlink_ext_ack
*extack
)
35 NL_SET_ERR_MSG_MOD(extack
, "Virtual Links not compiled in");
39 #endif /* IS_ENABLED(CONFIG_NET_DSA_SJA1105_VL) */
41 #endif /* _SJA1105_VL_H */