Commit 1d302f5f authored by Maciej Lipinski's avatar Maciej Lipinski

[HAL] Commited instructions for TODO in future, related to issue #199

parent 2c8f84cd
......@@ -159,6 +159,8 @@ int halexp_pps_cmd(int cmd, hexp_pps_params_t * params)
int halexp_port_info_cmd(hexp_port_info_params_t * params)
{
int i;
/* TODO: Improve/implement handling of many PPSi instances on a
single physical port (see more info in hal_port_update_info() */
for ( i=0; i< params->numberPortInterfaces; i++ )
hal_port_update_info(params->hIFace[i].name, params->hIFace[i].mode, params->hIFace[i].synchronized);
return 1;
......
......@@ -615,6 +615,15 @@ void hal_port_update_info(char *iface_name, int mode, int synchronized){
return;
}
/* TODO: Improve/implement handling of many instances on a single
physical port. Currently, the PPSi instance with the greatest
index will override any preceeding instances on a give physical
port. Very likely, a table with counter of instances per physical
port could be done. If the counter is greater than 1, the arbiration
kicks in. In such case, we could follow what was implemente
previously, namely an Instance in PTP SLAVE state has precedence.
TO BE DISCUSSED.
*/
for (i = 0; i < HAL_MAX_PORTS; i++) {
if (ps->in_use &&
......
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