xref: /linux/net/dsa/conduit.h (revision ebc733e54a1a79ea2dde2ba5121ae73a188e20d4)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef __DSA_CONDUIT_H
4 #define __DSA_CONDUIT_H
5 
6 struct dsa_port;
7 struct net_device;
8 struct netdev_lag_upper_info;
9 struct netlink_ext_ack;
10 
11 int dsa_conduit_setup(struct net_device *dev, struct dsa_port *cpu_dp);
12 void dsa_conduit_teardown(struct net_device *dev);
13 int dsa_conduit_lag_setup(struct net_device *lag_dev, struct dsa_port *cpu_dp,
14 			  struct netdev_lag_upper_info *uinfo,
15 			  struct netlink_ext_ack *extack);
16 void dsa_conduit_lag_teardown(struct net_device *lag_dev,
17 			      struct dsa_port *cpu_dp);
18 int __dsa_conduit_hwtstamp_validate(struct net_device *dev,
19 				    const struct kernel_hwtstamp_config *config,
20 				    struct netlink_ext_ack *extack);
21 
22 #endif
23