xref: /linux/net/dsa/conduit.h (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
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