OSDN Git Service

i40e: Fix to show correct Advertised Link Modes when link is down
authorAvinash Dayanand <avinash.dayanand@intel.com>
Mon, 20 Jun 2016 16:10:33 +0000 (09:10 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Jul 2016 07:07:03 +0000 (00:07 -0700)
commit2853704f112836387b7dab319b1e92b576666056
treea80731f6a7509472cf0946f608a897890a3731d8
parentcd956722167ba4fdba9c1ce3eed251b04ea2e10f
i40e: Fix to show correct Advertised Link Modes when link is down

When link is down, Advertised Link Modes was wrongly displaying full
supported link modes instead of Advertised link mode. Added conditional
checks in order to make sure correct Advertised link modes are
displayed when the link is down.

Change-ID: I8a61413f9ee174149c7a33157b5f0b0a8da9842d
Signed-off-by: Avinash Dayanand <avinash.dayanand@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_ethtool.c