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