]> 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)
commit66694f9a99da27cda00371df7bb94e45e7c3e5fc
treea047c4675a498ebd50195f21be52fbd0b5e34030
parentefa54c778920c3c14d8eac3e25d07a6782355f2b
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