igb: Add flow control advertising to ethtool setting.
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Fri, 2 Dec 2011 00:03:15 +0000 (00:03 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Jan 2012 01:42:02 +0000 (17:42 -0800)
Added pause flag for bi-directional flow control advertising to ethtool
settings.

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c

index e9335efac386bd2faa331f797bc57f0139a0fc09..f1206be4e71d85be56e5157efa43a59cbf63f18e 100644 (file)
@@ -148,7 +148,8 @@ static int igb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
                                   SUPPORTED_1000baseT_Full|
                                   SUPPORTED_Autoneg |
                                   SUPPORTED_TP);
-               ecmd->advertising = ADVERTISED_TP;
+               ecmd->advertising = (ADVERTISED_TP |
+                                    ADVERTISED_Pause);
 
                if (hw->mac.autoneg == 1) {
                        ecmd->advertising |= ADVERTISED_Autoneg;
@@ -165,7 +166,8 @@ static int igb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
 
                ecmd->advertising = (ADVERTISED_1000baseT_Full |
                                     ADVERTISED_FIBRE |
-                                    ADVERTISED_Autoneg);
+                                    ADVERTISED_Autoneg |
+                                    ADVERTISED_Pause);
 
                ecmd->port = PORT_FIBRE;
        }