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)
commit1e1b0c658d9bb364b4a2a4b08a760d3e4c239bdc
treea047c4675a498ebd50195f21be52fbd0b5e34030
parent9fe06a51287b2d41baef7ece94df34b5abf19b90
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