]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Use cached link state instead of re-reading the value for ethtool
authorAlexander Duyck <alexander.h.duyck@linux.intel.com>
Wed, 19 Jun 2019 16:58:53 +0000 (09:58 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 28 Jun 2019 23:00:13 +0000 (16:00 -0700)
commit8eccf6aece9b998870826edae43be6fd0f25a444
treea047c4675a498ebd50195f21be52fbd0b5e34030
parentc8a464a98d00e02b585923b404374835549ed925
ixgbevf: Use cached link state instead of re-reading the value for ethtool

Change the ethtool link settings call to just read the cached state out of
the adapter structure instead of trying to recheck the value from the PF.
Doing this should prevent excessive reading of the mailbox.

Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Reviewed-by: "Guilherme G. Piccoli" <gpiccoli@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ethtool.c