Commit 7cdc2d80 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace: port_state: rename a field, unused up to now

Rename "index" to "fiber_index", because it was never used, and it will
be the fiber index (enumerating fiber type 0..3). By reusing a field
of the same size, I don't need to change version number nor ppsi
(that uses the structure, but doesn't care about this value).q
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c5044cf2
......@@ -71,8 +71,8 @@ struct hal_port_state {
/* port FSM state (HAL_PORT_STATE_xxxx) */
int state;
/* unused */
int index;
/* fiber type, used to get alpha for SFP frequency */
int fiber_index;
/* 1: PLL is locked to this port */
int locked;
......
......@@ -188,7 +188,7 @@ struct dump_info hal_port_info [] = {
DUMP_FIELD(int, hw_addr_auto),
DUMP_FIELD(int, mode),
DUMP_FIELD(int, state),
DUMP_FIELD(int, index),
DUMP_FIELD(int, fiber_index),
DUMP_FIELD(int, locked),
/* these fields are defined as uint32_t but we prefer %i to %x */
DUMP_FIELD(int, calib.phy_rx_min),
......
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