int CTL_create_msti(int br_index, __u16 mstid)
{
CTL_CHECK_BRIDGE;
- return MSTP_IN_create_msti(br, mstid) ? 0 : -1;
+ if((!driver_create_msti(br, mstid)) || (!MSTP_IN_create_msti(br, mstid)))
+ return -1;
+ return 0;
}
int CTL_delete_msti(int br_index, __u16 mstid)
{
CTL_CHECK_BRIDGE;
- return MSTP_IN_delete_msti(br, mstid) ? 0 : -1;
+ if((!driver_delete_msti(br, mstid)) || (!MSTP_IN_delete_msti(br, mstid)))
+ return -1;
+ return 0;
}
int CTL_get_mstconfid(int br_index, mst_configuration_identifier_t *cfg)
int driver_set_new_state(per_tree_port_t *ptp, int new_state);
void driver_flush_all_fids(per_tree_port_t *ptp);
unsigned int driver_set_ageing_time(bridge_t *br, unsigned int ageingTime);
+bool driver_create_msti(bridge_t *br, __u16 mstid);
+bool driver_delete_msti(bridge_t *br, __u16 mstid);
#endif /* _MSTP_DRIVER_H */
return new_state;
}
+bool driver_create_msti(bridge_t *br, __u16 mstid)
+{
+ /* TODO: send "create msti" command to driver */
+ return true;
+}
+
+bool driver_delete_msti(bridge_t *br, __u16 mstid)
+{
+ /* TODO: send "delete msti" command to driver */
+ return true;
+}
+
void driver_flush_all_fids(per_tree_port_t *ptp)
{
/* TODO: do real flushing.