i40e: Wrong 'Advertised FEC modes' after set FEC to AUTO
authorJaroslaw Gawin <jaroslawx.gawin@intel.com>
Fri, 20 Sep 2019 09:17:17 +0000 (02:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:44:23 +0000 (16:44 +0100)
commit8438388755d132a93964015e7f34f6f462c411a5
tree8992a4bfc3718c9b5fae32e8598847cdc0256fc3
parent674ad72c47935980dada8e57fcecd50ebbe06b47
i40e: Wrong 'Advertised FEC modes' after set FEC to AUTO

[ Upstream commit e42b7e9cefca9dd008cbafffca97285cf264f72d ]

Fix display of parameters "Configured FEC encodings:" and "Advertised
FEC modes:" in ethtool.  Implemented by setting proper FEC bits in
“advertising” bitmask of link_modes struct and “fec” bitmask in
ethtool_fecparam struct. Without this patch wrong FEC settings
can be shown.

Signed-off-by: Jaroslaw Gawin <jaroslawx.gawin@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_ethtool.c