]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ixgbevf: Use cached link state instead of re-reading the value for ethtool
authorAlexander Duyck <alexander.h.duyck@linux.intel.com>
Tue, 16 Jul 2019 20:13:42 +0000 (17:13 -0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 30 Jul 2019 10:58:17 +0000 (12:58 +0200)
commit4bd2ac47ae1b7f03df81a8fc0ab25b4d59e1d398
tree581b8555817ccc86e33e0cb98bc8d9f2941c312f
parent6a9677c6fe5db9d2c4fee7604ec54fc7fa05b670
ixgbevf: Use cached link state instead of re-reading the value for ethtool

BugLink: https://bugs.launchpad.net/bugs/1836760
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>
(cherry picked from commit 1e1b0c658d9bb364b4a2a4b08a760d3e4c239bdc)
Signed-off-by: Guilherme G. Piccoli <gpiccoli@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/intel/ixgbevf/ethtool.c