diff options
author | Shahar Shitrit <[email protected]> | 2024-07-30 09:16:37 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-07-31 18:04:51 -0700 |
commit | 3f8e82a020a5c22f9b791f4ac499b8e18007fbda (patch) | |
tree | e55f67ba4f7698e9ca4eeecb36d7a4084d54a32e /drivers/net/ethernet/intel/igc | |
parent | 025f2b85a5e5a46df14ecf162c3c80a957a36d0b (diff) |
net/mlx5e: Add a check for the return value from mlx5_port_set_eth_ptys
Since the documentation for mlx5_toggle_port_link states that it should
only be used after setting the port register, we add a check for the
return value from mlx5_port_set_eth_ptys to ensure the register was
successfully set before calling it.
Fixes: 667daedaecd1 ("net/mlx5e: Toggle link only after modifying port parameters")
Signed-off-by: Shahar Shitrit <[email protected]>
Reviewed-by: Carolina Jubran <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Reviewed-by: Wojciech Drewek <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions