ice: Fix link mode handling
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Fri, 16 Jul 2021 22:16:39 +0000 (15:16 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 28 Sep 2021 16:42:04 +0000 (09:42 -0700)
commit4fc5fbee5cb7dda1411fcb44e1f3d95a86af53ea
tree8c194c6b32a603ae8ad36e1dd2bc2eb9fdc9ff09
parent40b247608bc50b5c046dfb1073c0ee7f57769c86
ice: Fix link mode handling

The messaging for unsupported module detection is different for
lenient mode and strict mode. Update the code to print the right
messaging for a given link mode.

Media topology conflict is not an error in lenient mode, so return
an error code only if not in lenient mode.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c