Commit 61bfb060 authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

i40e: always set ks->base.speed in i40e_get_settings_link_up

In i40e_get_settings_link_up, set ks->base.speed to SPEED_UNKNOWN
in the case where we don't know the link speed.
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 7c3758f7
...@@ -906,6 +906,7 @@ static void i40e_get_settings_link_up(struct i40e_hw *hw, ...@@ -906,6 +906,7 @@ static void i40e_get_settings_link_up(struct i40e_hw *hw,
ks->base.speed = SPEED_100; ks->base.speed = SPEED_100;
break; break;
default: default:
ks->base.speed = SPEED_UNKNOWN;
break; break;
} }
ks->base.duplex = DUPLEX_FULL; ks->base.duplex = DUPLEX_FULL;
......
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