static void
iface_create(struct bridge *br, struct if_cfg *if_cfg, int ofp_port)
{
- struct ofproto_port ofproto_port;
struct iface *iface;
struct port *port;
int error;
VLOG_DBG("bridge %s: interface %s is on port %d",
br->name, iface->name, iface->ofp_port);
} else {
+ struct ofproto_port ofproto_port;
+
if (iface->netdev) {
VLOG_ERR("bridge %s: missing %s interface, dropping",
br->name, iface->name);
/* Add bond fake iface if necessary. */
if (port_is_bond_fake_iface(port)) {
+ struct ofproto_port ofproto_port;
+
if (ofproto_port_query_by_name(br->ofproto, port->name,
&ofproto_port)) {
struct netdev *netdev;