port: correction of port name used port_open

Correction of fault introduced in "Add BMCA config option."

Signed-off-by: Anders Selhammer <anders.selhammer@est.tech>
Reviewed-by: Vedang Patel <vedang.patel@intel.com>
master
Anders Selhammer 2018-10-10 11:01:14 +00:00 committed by Richard Cochran
parent 4d251d8358
commit 8f2f9bbcab
1 changed files with 2 additions and 2 deletions

4
port.c
View File

@ -2901,8 +2901,8 @@ struct port *port_open(int phc_index,
p->phc_index = phc_index; p->phc_index = phc_index;
p->jbod = config_get_int(cfg, interface->name, "boundary_clock_jbod"); p->jbod = config_get_int(cfg, interface->name, "boundary_clock_jbod");
transport = config_get_int(cfg, interface->name, "network_transport"); transport = config_get_int(cfg, interface->name, "network_transport");
p->master_only = config_get_int(cfg, p->name, "masterOnly"); p->master_only = config_get_int(cfg, interface->name, "masterOnly");
p->bmca = config_get_int(cfg, p->name, "BMCA"); p->bmca = config_get_int(cfg, interface->name, "BMCA");
if (p->bmca == BMCA_NOOP && transport != TRANS_UDS) { if (p->bmca == BMCA_NOOP && transport != TRANS_UDS) {
if (p->master_only) { if (p->master_only) {