OSDN Git Service

i40e: Fix overwriting flow control settings during driver loading
authorMateusz Palczewski <mateusz.palczewski@intel.com>
Tue, 24 Nov 2020 15:08:27 +0000 (15:08 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 18 Feb 2021 18:21:17 +0000 (10:21 -0800)
commit4cdb9f80dcd46aab3c0020b4a6920c22735c5d6e
tree2bc33762005370e0bb1a42aace3870066ee318aa
parentd2c788f739b6f68090e968a2ee31b543701e795f
i40e: Fix overwriting flow control settings during driver loading

During driver loading flow control settings were written to FW
using a variable which was always zero, since it was being set
only by ethtool. This behavior has been corrected and driver
no longer overwrites the default FW/NVM settings.

Fixes: 373149fc99a0 ("i40e: Decrease the scope of rtnl lock")
Signed-off-by: Dawid Lukwinski <dawid.lukwinski@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c