struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_attr_stp_state_set)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_attr_stp_state_set(rocker_port, state, trans);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_attr_bridge_flags_set)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_attr_bridge_flags_set(rocker_port, brport_flags,
trans);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_attr_bridge_flags_get)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_attr_bridge_flags_get(rocker_port, p_brport_flags);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_attr_bridge_ageing_time_set)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_attr_bridge_ageing_time_set(rocker_port, ageing_time,
trans);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_vlan_add)
+ return -EOPNOTSUPP;
return 0;
return wops->port_obj_vlan_add(rocker_port, vlan, trans);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_vlan_del)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_obj_vlan_del(rocker_port, vlan);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_vlan_dump)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_obj_vlan_dump(rocker_port, vlan, cb);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_fib4_add)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_obj_fib4_add(rocker_port, fib4, trans);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_fib4_del)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_obj_fib4_del(rocker_port, fib4);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_fdb_add)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_obj_fdb_add(rocker_port, fdb, trans);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_fdb_del)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_obj_fdb_del(rocker_port, fdb);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_obj_fdb_dump)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_obj_fdb_dump(rocker_port, fdb, cb);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_master_linked)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_master_linked(rocker_port, master);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_master_unlinked)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_master_unlinked(rocker_port, master);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_neigh_update)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_neigh_update(rocker_port, n);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_neigh_destroy)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_neigh_destroy(rocker_port, n);
}
struct rocker_world_ops *wops = rocker_port->rocker->wops;
if (!wops->port_ev_mac_vlan_seen)
- return 0;
+ return -EOPNOTSUPP;
return wops->port_ev_mac_vlan_seen(rocker_port, addr, vlan_id);
}