i40e: Fix multiple link up messages
authorMatt Jared <matthew.a.jared@intel.com>
Thu, 27 Aug 2015 15:42:39 +0000 (11:42 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 8 Oct 2015 22:28:18 +0000 (15:28 -0700)
commitc156f856ad8ba4f71bcdb2c92ba1a9effaa29ac1
tree3587bd283f45d3051b2723a4626902288beefcf6
parent3487b6c30c0dd2204dc31e14330097dff02d9a58
i40e: Fix multiple link up messages

This patch addresses an issue where multiple link up messages can be logged
resulting from aq link status timing when link properties are changed (fc,
speed, etc.); solved by using a single function to handle status printing
and adding a mechanism to track whether link state (up or down) has
actually changed.

Change-ID: Ied6ed6e49dc397c77d992adc0bc9ed3767152b9d
Signed-off-by: Matt Jared <matthew.a.jared@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c