diff options
| author | Alan Brady <alan.brady@intel.com> | 2017-10-06 00:53:34 +0300 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-10-17 20:48:51 +0300 |
| commit | 5f434994ba94f7f02c1f47a9dd13204d1fbc9686 (patch) | |
| tree | 5b38e06c6c35e07089ce0e95695fb75d372eeedd /scripts/patch-kernel | |
| parent | 21675bdc214b34d2ce4e30396e9ff36f0e61ae93 (diff) | |
| download | linux-5f434994ba94f7f02c1f47a9dd13204d1fbc9686.tar.xz | |
i40e: fix clearing link masks in i40e_get_link_ksettings
This fixes two issues in i40e_get_link_ksettings. It adds calls to
ethtool_link_ksettings_zero_link_mode to make sure advertising and
supported link masks are cleared before we start setting bits in them.
This also replaces some funky bit manipulations with a much nicer call
to ethtool_link_ksettings_del_link_mode when removing link modes.
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
