i40e: get media type during link info
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 20 Nov 2013 10:02:50 +0000 (10:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 7 Dec 2013 00:19:22 +0000 (16:19 -0800)
commitbe405eb0e47f1ee027e9c0e1087129fb29b7bc08
tree84f1bf80c28d1ecfae3b1b98dc7bbae8803ac3f7
parent8a4949200812b865a8c101958bdde1b7f8cdd020
i40e: get media type during link info

Set the media type in the hardware structure, based
on the external connection type.

Add Direct Attach to the type of media reported by ethtool.

Change-Id: I4ad2f5bf882766d6e737fac4477abf049491b3b3
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_type.h