err = dpaa2_switch_port_set_learning(port_priv, learn_ena);
if (err)
return err;
+ port_priv->learn_ena = learn_ena;
}
if (flags.mask & (BR_BCAST_FLOOD | BR_FLOOD | BR_MCAST_FLOOD)) {
/* Inherit the initial bridge port learning state */
learn_ena = br_port_flag_is_set(netdev, BR_LEARNING);
err = dpaa2_switch_port_set_learning(port_priv, learn_ena);
+ port_priv->learn_ena = learn_ena;
/* Setup the egress flood policy (broadcast, unknown unicast) */
err = dpaa2_switch_fdb_set_egress_flood(ethsw, port_priv->fdb->fdb_id);
err = dpaa2_switch_port_set_learning(port_priv, false);
if (err)
return err;
+ port_priv->learn_ena = false;
/* Add the VLAN 1 as PVID when not under a bridge. We need this since
* the dpaa2 switch interfaces are not capable to be VLAN unaware
err = dpaa2_switch_port_set_learning(port_priv, false);
if (err)
goto err_port_probe;
+ port_priv->learn_ena = false;
return 0;