Commit 26659802 authored by Aurelio Colosimo's avatar Aurelio Colosimo

struct pp_instance: add port_idx field

Will be useful for global bmc_state_decision computation
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent f69e05bb
......@@ -183,6 +183,7 @@ struct pp_instance {
master_only:1,
ethernet_mode:1;
char *iface_name;
int port_idx;
};
/*
......
......@@ -72,6 +72,7 @@ int pp_open_globals(struct pp_globals *ppg, struct pp_runtime_opts *_rt_opts)
def->slaveOnly = 0;
ppg->pp_instances[i].state = PPS_INITIALIZING;
ppg->pp_instances[i].port_idx = i;
}
if (def->slaveOnly)
......
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