net/bnxt: fix PAM4 link negotiation
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 2 Nov 2020 02:43:16 +0000 (18:43 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:07 +0000 (23:35 +0100)
commit739356da98df1e902806608e3433741a35216aae
tree981960819b8aa28606e4ce2542a8062ffc967721
parentf1a6a986c1b6065d098e79b1a26b3e867dc418f7
net/bnxt: fix PAM4 link negotiation

In some instances link was not coming up if PAM4 signaling is enabled.
Added check to disable autoneg if FW indicates auto speeds are zero.
Use default auto speeds if PAM4 auto speeds is not set.
Added a fix for forced link setting.

Fixes: c23f9ded0391 ("net/bnxt: support 200G PAM4 link")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_hwrm.c