Commit 24fe7c67 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/wrsw_hal: remove SFP's info when removed SFP

Until now when SFP was removed its info stayed in HAL's shmem
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent b00bfeb0
......@@ -524,6 +524,8 @@ static void hal_port_remove_sfp(struct hal_port_state * p)
{
hal_port_link_down(p, 0);
p->state = HAL_PORT_STATE_DISABLED;
/* clean SFP's details when removing SFP */
memset(&p->calib.sfp, 0, sizeof(p->calib.sfp));
}
/* detects insertion/removal of SFP transceivers */
......
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