xref: /openbmc/linux/net/dsa/master.h (revision 0545810f)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef __DSA_MASTER_H
4 #define __DSA_MASTER_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_master_setup(struct net_device *dev, struct dsa_port *cpu_dp);
12 void dsa_master_teardown(struct net_device *dev);
13 int dsa_master_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_master_lag_teardown(struct net_device *lag_dev,
17 			     struct dsa_port *cpu_dp);
18 int __dsa_master_hwtstamp_validate(struct net_device *dev,
19 				   const struct kernel_hwtstamp_config *config,
20 				   struct netlink_ext_ack *extack);
21 
22 #endif
23