xref: /linux/drivers/net/ethernet/marvell/prestera/prestera_switchdev.h (revision f3956ebb3bf06ab2266ad5ee2214aed46405810c)
1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */
3 
4 #ifndef _PRESTERA_SWITCHDEV_H_
5 #define _PRESTERA_SWITCHDEV_H_
6 
7 int prestera_switchdev_init(struct prestera_switch *sw);
8 void prestera_switchdev_fini(struct prestera_switch *sw);
9 
10 int prestera_bridge_port_join(struct net_device *br_dev,
11 			      struct prestera_port *port,
12 			      struct netlink_ext_ack *extack);
13 
14 void prestera_bridge_port_leave(struct net_device *br_dev,
15 				struct prestera_port *port);
16 
17 #endif /* _PRESTERA_SWITCHDEV_H_ */
18