Commit 93830146 authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrpc: at link down forget foreign masters

Also, report how may are there in bmc diagnostics
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 36d48212
......@@ -208,6 +208,8 @@ int wrc_ptp_stop()
/* Moving fiber: forget about this parent (FIXME: shouldn't be here) */
wrp->parentWrConfig = wrp->parentWrModeOn = 0;
memset(ppi->frgn_master, 0, sizeof(ppi->frgn_master));
ppi->frgn_rec_num = 0; /* no known master */
ptp_enabled = 0;
wr_servo_reset();
pp_close_globals(&ppg_static);
......
......@@ -299,7 +299,8 @@ int bmc(struct pp_instance *ppi)
< 0)
best = i;
pp_diag(ppi, bmc, 1,"Best foreign master is %i\n", best);
pp_diag(ppi, bmc, 1,"Best foreign master is %i/%i\n", best,
ppi->frgn_rec_num);
if (ppi->frgn_rec_best != best) {
ppi->frgn_rec_best = best;
bmc_update_ebest(GLBS(ppi));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment