Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side

In order to pass EEE link modes beyond bit 32 to userspace we have to
complement the 32 bit bitmaps in struct ethtool_eee with linkmode
bitmaps. Therefore, similar to ethtool_link_settings and
ethtool_link_ksettings, add a struct ethtool_keee. In a first step
it's an identical copy of ethtool_eee. This patch simply does a
s/ethtool_eee/ethtool_keee/g for all users.
No functional change intended.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Heiner Kallweit and committed by
David S. Miller
d80a5233 2acfd589

+159 -147
+5 -5
drivers/net/dsa/b53/b53_common.c
··· 1257 1257 struct phy_device *phydev) 1258 1258 { 1259 1259 struct b53_device *dev = ds->priv; 1260 - struct ethtool_eee *p = &dev->ports[port].eee; 1260 + struct ethtool_keee *p = &dev->ports[port].eee; 1261 1261 u8 rgmii_ctrl = 0, reg = 0, off; 1262 1262 bool tx_pause = false; 1263 1263 bool rx_pause = false; ··· 2224 2224 } 2225 2225 EXPORT_SYMBOL(b53_eee_init); 2226 2226 2227 - int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e) 2227 + int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e) 2228 2228 { 2229 2229 struct b53_device *dev = ds->priv; 2230 - struct ethtool_eee *p = &dev->ports[port].eee; 2230 + struct ethtool_keee *p = &dev->ports[port].eee; 2231 2231 u16 reg; 2232 2232 2233 2233 if (is5325(dev) || is5365(dev)) ··· 2241 2241 } 2242 2242 EXPORT_SYMBOL(b53_get_mac_eee); 2243 2243 2244 - int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e) 2244 + int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e) 2245 2245 { 2246 2246 struct b53_device *dev = ds->priv; 2247 - struct ethtool_eee *p = &dev->ports[port].eee; 2247 + struct ethtool_keee *p = &dev->ports[port].eee; 2248 2248 2249 2249 if (is5325(dev) || is5365(dev)) 2250 2250 return -EOPNOTSUPP;
+3 -3
drivers/net/dsa/b53/b53_priv.h
··· 95 95 96 96 struct b53_port { 97 97 u16 vlan_ctl_mask; 98 - struct ethtool_eee eee; 98 + struct ethtool_keee eee; 99 99 }; 100 100 101 101 struct b53_vlan { ··· 397 397 void b53_brcm_hdr_setup(struct dsa_switch *ds, int port); 398 398 void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable); 399 399 int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy); 400 - int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e); 401 - int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e); 400 + int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e); 401 + int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e); 402 402 403 403 #endif
+1 -1
drivers/net/dsa/bcm_sf2.c
··· 835 835 bool tx_pause, bool rx_pause) 836 836 { 837 837 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); 838 - struct ethtool_eee *p = &priv->dev->ports[port].eee; 838 + struct ethtool_keee *p = &priv->dev->ports[port].eee; 839 839 u32 reg_rgmii_ctrl = 0; 840 840 u32 reg, offset; 841 841
+2 -2
drivers/net/dsa/microchip/ksz_common.c
··· 2852 2852 } 2853 2853 2854 2854 static int ksz_get_mac_eee(struct dsa_switch *ds, int port, 2855 - struct ethtool_eee *e) 2855 + struct ethtool_keee *e) 2856 2856 { 2857 2857 int ret; 2858 2858 ··· 2872 2872 } 2873 2873 2874 2874 static int ksz_set_mac_eee(struct dsa_switch *ds, int port, 2875 - struct ethtool_eee *e) 2875 + struct ethtool_keee *e) 2876 2876 { 2877 2877 struct ksz_device *dev = ds->priv; 2878 2878 int ret;
+2 -2
drivers/net/dsa/mt7530.c
··· 3048 3048 } 3049 3049 3050 3050 static int mt753x_get_mac_eee(struct dsa_switch *ds, int port, 3051 - struct ethtool_eee *e) 3051 + struct ethtool_keee *e) 3052 3052 { 3053 3053 struct mt7530_priv *priv = ds->priv; 3054 3054 u32 eeecr = mt7530_read(priv, MT7530_PMEEECR_P(port)); ··· 3060 3060 } 3061 3061 3062 3062 static int mt753x_set_mac_eee(struct dsa_switch *ds, int port, 3063 - struct ethtool_eee *e) 3063 + struct ethtool_keee *e) 3064 3064 { 3065 3065 struct mt7530_priv *priv = ds->priv; 3066 3066 u32 set, mask = LPI_THRESH_MASK | LPI_MODE_EN;
+2 -2
drivers/net/dsa/mv88e6xxx/chip.c
··· 1451 1451 } 1452 1452 1453 1453 static int mv88e6xxx_get_mac_eee(struct dsa_switch *ds, int port, 1454 - struct ethtool_eee *e) 1454 + struct ethtool_keee *e) 1455 1455 { 1456 1456 /* Nothing to do on the port's MAC */ 1457 1457 return 0; 1458 1458 } 1459 1459 1460 1460 static int mv88e6xxx_set_mac_eee(struct dsa_switch *ds, int port, 1461 - struct ethtool_eee *e) 1461 + struct ethtool_keee *e) 1462 1462 { 1463 1463 /* Nothing to do on the port's MAC */ 1464 1464 return 0;
+2 -2
drivers/net/dsa/qca/qca8k-common.c
··· 534 534 } 535 535 536 536 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, 537 - struct ethtool_eee *eee) 537 + struct ethtool_keee *eee) 538 538 { 539 539 u32 lpi_en = QCA8K_REG_EEE_CTRL_LPI_EN(port); 540 540 struct qca8k_priv *priv = ds->priv; ··· 558 558 } 559 559 560 560 int qca8k_get_mac_eee(struct dsa_switch *ds, int port, 561 - struct ethtool_eee *e) 561 + struct ethtool_keee *e) 562 562 { 563 563 /* Nothing to do on the port's MAC */ 564 564 return 0;
+2 -2
drivers/net/dsa/qca/qca8k.h
··· 518 518 int qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset); 519 519 520 520 /* Common eee function */ 521 - int qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *eee); 522 - int qca8k_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e); 521 + int qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *eee); 522 + int qca8k_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e); 523 523 524 524 /* Common bridge function */ 525 525 void qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state);
+2 -2
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
··· 697 697 return rate; 698 698 } 699 699 700 - static int aq_ethtool_get_eee(struct net_device *ndev, struct ethtool_eee *eee) 700 + static int aq_ethtool_get_eee(struct net_device *ndev, struct ethtool_keee *eee) 701 701 { 702 702 struct aq_nic_s *aq_nic = netdev_priv(ndev); 703 703 u32 rate, supported_rates; ··· 729 729 return 0; 730 730 } 731 731 732 - static int aq_ethtool_set_eee(struct net_device *ndev, struct ethtool_eee *eee) 732 + static int aq_ethtool_set_eee(struct net_device *ndev, struct ethtool_keee *eee) 733 733 { 734 734 struct aq_nic_s *aq_nic = netdev_priv(ndev); 735 735 u32 rate, supported_rates;
+1 -1
drivers/net/ethernet/broadcom/asp2/bcmasp.h
··· 337 337 int wol_irq; 338 338 unsigned int wol_irq_enabled:1; 339 339 340 - struct ethtool_eee eee; 340 + struct ethtool_keee eee; 341 341 }; 342 342 343 343 #define NUM_NET_FILTERS 32
+4 -4
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
··· 363 363 intf->eee.eee_active = enable; 364 364 } 365 365 366 - static int bcmasp_get_eee(struct net_device *dev, struct ethtool_eee *e) 366 + static int bcmasp_get_eee(struct net_device *dev, struct ethtool_keee *e) 367 367 { 368 368 struct bcmasp_intf *intf = netdev_priv(dev); 369 - struct ethtool_eee *p = &intf->eee; 369 + struct ethtool_keee *p = &intf->eee; 370 370 371 371 if (!dev->phydev) 372 372 return -ENODEV; ··· 379 379 return phy_ethtool_get_eee(dev->phydev, e); 380 380 } 381 381 382 - static int bcmasp_set_eee(struct net_device *dev, struct ethtool_eee *e) 382 + static int bcmasp_set_eee(struct net_device *dev, struct ethtool_keee *e) 383 383 { 384 384 struct bcmasp_intf *intf = netdev_priv(dev); 385 - struct ethtool_eee *p = &intf->eee; 385 + struct ethtool_keee *p = &intf->eee; 386 386 int ret; 387 387 388 388 if (!dev->phydev)
+2 -2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
··· 2108 2108 return eee_adv << shift; 2109 2109 } 2110 2110 2111 - static int bnx2x_get_eee(struct net_device *dev, struct ethtool_eee *edata) 2111 + static int bnx2x_get_eee(struct net_device *dev, struct ethtool_keee *edata) 2112 2112 { 2113 2113 struct bnx2x *bp = netdev_priv(dev); 2114 2114 u32 eee_cfg; ··· 2141 2141 return 0; 2142 2142 } 2143 2143 2144 - static int bnx2x_set_eee(struct net_device *dev, struct ethtool_eee *edata) 2144 + static int bnx2x_set_eee(struct net_device *dev, struct ethtool_keee *edata) 2145 2145 { 2146 2146 struct bnx2x *bp = netdev_priv(dev); 2147 2147 u32 eee_cfg;
+4 -4
drivers/net/ethernet/broadcom/bnxt/bnxt.c
··· 10621 10621 10622 10622 bp->phy_flags = resp->flags | (le16_to_cpu(resp->flags2) << 8); 10623 10623 if (resp->flags & PORT_PHY_QCAPS_RESP_FLAGS_EEE_SUPPORTED) { 10624 - struct ethtool_eee *eee = &bp->eee; 10624 + struct ethtool_keee *eee = &bp->eee; 10625 10625 u16 fw_speeds = le16_to_cpu(resp->supported_speeds_eee_mode); 10626 10626 10627 10627 eee->supported = _bnxt_fw_to_ethtool_adv_spds(fw_speeds, 0); ··· 10766 10766 link_info->module_status = resp->module_status; 10767 10767 10768 10768 if (bp->phy_flags & BNXT_PHY_FL_EEE_CAP) { 10769 - struct ethtool_eee *eee = &bp->eee; 10769 + struct ethtool_keee *eee = &bp->eee; 10770 10770 u16 fw_speeds; 10771 10771 10772 10772 eee->eee_active = 0; ··· 10957 10957 static void bnxt_hwrm_set_eee(struct bnxt *bp, 10958 10958 struct hwrm_port_phy_cfg_input *req) 10959 10959 { 10960 - struct ethtool_eee *eee = &bp->eee; 10960 + struct ethtool_keee *eee = &bp->eee; 10961 10961 10962 10962 if (eee->eee_enabled) { 10963 10963 u16 eee_speeds; ··· 11322 11322 11323 11323 static bool bnxt_eee_config_ok(struct bnxt *bp) 11324 11324 { 11325 - struct ethtool_eee *eee = &bp->eee; 11325 + struct ethtool_keee *eee = &bp->eee; 11326 11326 struct bnxt_link_info *link_info = &bp->link_info; 11327 11327 11328 11328 if (!(bp->phy_flags & BNXT_PHY_FL_EEE_CAP))
+1 -1
drivers/net/ethernet/broadcom/bnxt/bnxt.h
··· 2442 2442 */ 2443 2443 struct mutex link_lock; 2444 2444 struct bnxt_link_info link_info; 2445 - struct ethtool_eee eee; 2445 + struct ethtool_keee eee; 2446 2446 u32 lpi_tmr_lo; 2447 2447 u32 lpi_tmr_hi; 2448 2448
+3 -3
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
··· 3884 3884 eeprom->len); 3885 3885 } 3886 3886 3887 - static int bnxt_set_eee(struct net_device *dev, struct ethtool_eee *edata) 3887 + static int bnxt_set_eee(struct net_device *dev, struct ethtool_keee *edata) 3888 3888 { 3889 3889 struct bnxt *bp = netdev_priv(dev); 3890 - struct ethtool_eee *eee = &bp->eee; 3890 + struct ethtool_keee *eee = &bp->eee; 3891 3891 struct bnxt_link_info *link_info = &bp->link_info; 3892 3892 u32 advertising; 3893 3893 int rc = 0; ··· 3942 3942 return rc; 3943 3943 } 3944 3944 3945 - static int bnxt_get_eee(struct net_device *dev, struct ethtool_eee *edata) 3945 + static int bnxt_get_eee(struct net_device *dev, struct ethtool_keee *edata) 3946 3946 { 3947 3947 struct bnxt *bp = netdev_priv(dev); 3948 3948
+4 -4
drivers/net/ethernet/broadcom/genet/bcmgenet.c
··· 1317 1317 priv->eee.tx_lpi_enabled = tx_lpi_enabled; 1318 1318 } 1319 1319 1320 - static int bcmgenet_get_eee(struct net_device *dev, struct ethtool_eee *e) 1320 + static int bcmgenet_get_eee(struct net_device *dev, struct ethtool_keee *e) 1321 1321 { 1322 1322 struct bcmgenet_priv *priv = netdev_priv(dev); 1323 - struct ethtool_eee *p = &priv->eee; 1323 + struct ethtool_keee *p = &priv->eee; 1324 1324 1325 1325 if (GENET_IS_V1(priv)) 1326 1326 return -EOPNOTSUPP; ··· 1336 1336 return phy_ethtool_get_eee(dev->phydev, e); 1337 1337 } 1338 1338 1339 - static int bcmgenet_set_eee(struct net_device *dev, struct ethtool_eee *e) 1339 + static int bcmgenet_set_eee(struct net_device *dev, struct ethtool_keee *e) 1340 1340 { 1341 1341 struct bcmgenet_priv *priv = netdev_priv(dev); 1342 - struct ethtool_eee *p = &priv->eee; 1342 + struct ethtool_keee *p = &priv->eee; 1343 1343 1344 1344 if (GENET_IS_V1(priv)) 1345 1345 return -EOPNOTSUPP;
+1 -1
drivers/net/ethernet/broadcom/genet/bcmgenet.h
··· 645 645 646 646 struct bcmgenet_mib_counters mib; 647 647 648 - struct ethtool_eee eee; 648 + struct ethtool_keee eee; 649 649 }; 650 650 651 651 #define GENET_IO_MACRO(name, offset) \
+5 -5
drivers/net/ethernet/broadcom/tg3.c
··· 2338 2338 tg3_phy_toggle_auxctl_smdsp(tp, false); 2339 2339 } 2340 2340 2341 - static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_eee *eee) 2341 + static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_keee *eee) 2342 2342 { 2343 2343 u32 val; 2344 - struct ethtool_eee *dest = &tp->eee; 2344 + struct ethtool_keee *dest = &tp->eee; 2345 2345 2346 2346 if (!(tp->phy_flags & TG3_PHYFLG_EEE_CAP)) 2347 2347 return; ··· 4618 4618 4619 4619 static bool tg3_phy_eee_config_ok(struct tg3 *tp) 4620 4620 { 4621 - struct ethtool_eee eee; 4621 + struct ethtool_keee eee; 4622 4622 4623 4623 if (!(tp->phy_flags & TG3_PHYFLG_EEE_CAP)) 4624 4624 return true; ··· 14180 14180 return 0; 14181 14181 } 14182 14182 14183 - static int tg3_set_eee(struct net_device *dev, struct ethtool_eee *edata) 14183 + static int tg3_set_eee(struct net_device *dev, struct ethtool_keee *edata) 14184 14184 { 14185 14185 struct tg3 *tp = netdev_priv(dev); 14186 14186 ··· 14217 14217 return 0; 14218 14218 } 14219 14219 14220 - static int tg3_get_eee(struct net_device *dev, struct ethtool_eee *edata) 14220 + static int tg3_get_eee(struct net_device *dev, struct ethtool_keee *edata) 14221 14221 { 14222 14222 struct tg3 *tp = netdev_priv(dev); 14223 14223
+1 -1
drivers/net/ethernet/broadcom/tg3.h
··· 3419 3419 unsigned int irq_cnt; 3420 3420 3421 3421 struct ethtool_coalesce coal; 3422 - struct ethtool_eee eee; 3422 + struct ethtool_keee eee; 3423 3423 3424 3424 /* firmware info */ 3425 3425 const char *fw_needed;
+3 -3
drivers/net/ethernet/engleder/tsnep_main.c
··· 240 240 static int tsnep_phy_open(struct tsnep_adapter *adapter) 241 241 { 242 242 struct phy_device *phydev; 243 - struct ethtool_eee ethtool_eee; 243 + struct ethtool_keee ethtool_keee; 244 244 int retval; 245 245 246 246 retval = phy_connect_direct(adapter->netdev, adapter->phydev, ··· 259 259 phy_remove_link_mode(phydev, ETHTOOL_LINK_MODE_1000baseT_Half_BIT); 260 260 261 261 /* disable EEE autoneg, EEE not supported by TSNEP */ 262 - memset(&ethtool_eee, 0, sizeof(ethtool_eee)); 263 - phy_ethtool_set_eee(adapter->phydev, &ethtool_eee); 262 + memset(&ethtool_keee, 0, sizeof(ethtool_keee)); 263 + phy_ethtool_set_eee(adapter->phydev, &ethtool_keee); 264 264 265 265 adapter->phydev->irq = PHY_MAC_INTERRUPT; 266 266 phy_start(adapter->phydev);
+2 -2
drivers/net/ethernet/freescale/enetc/enetc.c
··· 2402 2402 static int enetc_phylink_connect(struct net_device *ndev) 2403 2403 { 2404 2404 struct enetc_ndev_priv *priv = netdev_priv(ndev); 2405 - struct ethtool_eee edata; 2405 + struct ethtool_keee edata; 2406 2406 int err; 2407 2407 2408 2408 if (!priv->phylink) { ··· 2418 2418 } 2419 2419 2420 2420 /* disable EEE autoneg, until ENETC driver supports it */ 2421 - memset(&edata, 0, sizeof(struct ethtool_eee)); 2421 + memset(&edata, 0, sizeof(struct ethtool_keee)); 2422 2422 phylink_ethtool_set_eee(priv->phylink, &edata); 2423 2423 2424 2424 phylink_start(priv->phylink);
+1 -1
drivers/net/ethernet/freescale/fec.h
··· 672 672 unsigned int itr_clk_rate; 673 673 674 674 /* tx lpi eee mode */ 675 - struct ethtool_eee eee; 675 + struct ethtool_keee eee; 676 676 unsigned int clk_ref_rate; 677 677 678 678 /* ptp clock period in ns*/
+5 -5
drivers/net/ethernet/freescale/fec_main.c
··· 3122 3122 static int fec_enet_eee_mode_set(struct net_device *ndev, bool enable) 3123 3123 { 3124 3124 struct fec_enet_private *fep = netdev_priv(ndev); 3125 - struct ethtool_eee *p = &fep->eee; 3125 + struct ethtool_keee *p = &fep->eee; 3126 3126 unsigned int sleep_cycle, wake_cycle; 3127 3127 int ret = 0; 3128 3128 ··· 3149 3149 } 3150 3150 3151 3151 static int 3152 - fec_enet_get_eee(struct net_device *ndev, struct ethtool_eee *edata) 3152 + fec_enet_get_eee(struct net_device *ndev, struct ethtool_keee *edata) 3153 3153 { 3154 3154 struct fec_enet_private *fep = netdev_priv(ndev); 3155 - struct ethtool_eee *p = &fep->eee; 3155 + struct ethtool_keee *p = &fep->eee; 3156 3156 3157 3157 if (!(fep->quirks & FEC_QUIRK_HAS_EEE)) 3158 3158 return -EOPNOTSUPP; ··· 3169 3169 } 3170 3170 3171 3171 static int 3172 - fec_enet_set_eee(struct net_device *ndev, struct ethtool_eee *edata) 3172 + fec_enet_set_eee(struct net_device *ndev, struct ethtool_keee *edata) 3173 3173 { 3174 3174 struct fec_enet_private *fep = netdev_priv(ndev); 3175 - struct ethtool_eee *p = &fep->eee; 3175 + struct ethtool_keee *p = &fep->eee; 3176 3176 int ret = 0; 3177 3177 3178 3178 if (!(fep->quirks & FEC_QUIRK_HAS_EEE))
+2 -2
drivers/net/ethernet/freescale/gianfar.c
··· 1649 1649 struct gfar_private *priv = netdev_priv(dev); 1650 1650 phy_interface_t interface = priv->interface; 1651 1651 struct phy_device *phydev; 1652 - struct ethtool_eee edata; 1652 + struct ethtool_keee edata; 1653 1653 1654 1654 linkmode_set_bit_array(phy_10_100_features_array, 1655 1655 ARRAY_SIZE(phy_10_100_features_array), ··· 1681 1681 phy_support_asym_pause(phydev); 1682 1682 1683 1683 /* disable EEE autoneg, EEE not supported by eTSEC */ 1684 - memset(&edata, 0, sizeof(struct ethtool_eee)); 1684 + memset(&edata, 0, sizeof(struct ethtool_keee)); 1685 1685 phy_ethtool_set_eee(phydev, &edata); 1686 1686 1687 1687 return 0;
+3 -3
drivers/net/ethernet/intel/e1000e/ethtool.c
··· 2186 2186 } 2187 2187 } 2188 2188 2189 - static int e1000e_get_eee(struct net_device *netdev, struct ethtool_eee *edata) 2189 + static int e1000e_get_eee(struct net_device *netdev, struct ethtool_keee *edata) 2190 2190 { 2191 2191 struct e1000_adapter *adapter = netdev_priv(netdev); 2192 2192 struct e1000_hw *hw = &adapter->hw; ··· 2262 2262 return ret_val; 2263 2263 } 2264 2264 2265 - static int e1000e_set_eee(struct net_device *netdev, struct ethtool_eee *edata) 2265 + static int e1000e_set_eee(struct net_device *netdev, struct ethtool_keee *edata) 2266 2266 { 2267 2267 struct e1000_adapter *adapter = netdev_priv(netdev); 2268 2268 struct e1000_hw *hw = &adapter->hw; 2269 - struct ethtool_eee eee_curr; 2269 + struct ethtool_keee eee_curr; 2270 2270 s32 ret_val; 2271 2271 2272 2272 ret_val = e1000e_get_eee(netdev, &eee_curr);
+3 -3
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
··· 5644 5644 return 0; 5645 5645 } 5646 5646 5647 - static int i40e_get_eee(struct net_device *netdev, struct ethtool_eee *edata) 5647 + static int i40e_get_eee(struct net_device *netdev, struct ethtool_keee *edata) 5648 5648 { 5649 5649 struct i40e_netdev_priv *np = netdev_priv(netdev); 5650 5650 struct i40e_aq_get_phy_abilities_resp phy_cfg; ··· 5682 5682 } 5683 5683 5684 5684 static int i40e_is_eee_param_supported(struct net_device *netdev, 5685 - struct ethtool_eee *edata) 5685 + struct ethtool_keee *edata) 5686 5686 { 5687 5687 struct i40e_netdev_priv *np = netdev_priv(netdev); 5688 5688 struct i40e_vsi *vsi = np->vsi; ··· 5709 5709 return 0; 5710 5710 } 5711 5711 5712 - static int i40e_set_eee(struct net_device *netdev, struct ethtool_eee *edata) 5712 + static int i40e_set_eee(struct net_device *netdev, struct ethtool_keee *edata) 5713 5713 { 5714 5714 struct i40e_netdev_priv *np = netdev_priv(netdev); 5715 5715 struct i40e_aq_get_phy_abilities_resp abilities;
+4 -4
drivers/net/ethernet/intel/igb/igb_ethtool.c
··· 3027 3027 return ret; 3028 3028 } 3029 3029 3030 - static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata) 3030 + static int igb_get_eee(struct net_device *netdev, struct ethtool_keee *edata) 3031 3031 { 3032 3032 struct igb_adapter *adapter = netdev_priv(netdev); 3033 3033 struct e1000_hw *hw = &adapter->hw; ··· 3106 3106 } 3107 3107 3108 3108 static int igb_set_eee(struct net_device *netdev, 3109 - struct ethtool_eee *edata) 3109 + struct ethtool_keee *edata) 3110 3110 { 3111 3111 struct igb_adapter *adapter = netdev_priv(netdev); 3112 3112 struct e1000_hw *hw = &adapter->hw; 3113 - struct ethtool_eee eee_curr; 3113 + struct ethtool_keee eee_curr; 3114 3114 bool adv1g_eee = true, adv100m_eee = true; 3115 3115 s32 ret_val; 3116 3116 ··· 3118 3118 (hw->phy.media_type != e1000_media_type_copper)) 3119 3119 return -EOPNOTSUPP; 3120 3120 3121 - memset(&eee_curr, 0, sizeof(struct ethtool_eee)); 3121 + memset(&eee_curr, 0, sizeof(struct ethtool_keee)); 3122 3122 3123 3123 ret_val = igb_get_eee(netdev, &eee_curr); 3124 3124 if (ret_val)
+1 -1
drivers/net/ethernet/intel/igc/igc.h
··· 168 168 struct igc_adapter { 169 169 struct net_device *netdev; 170 170 171 - struct ethtool_eee eee; 171 + struct ethtool_keee eee; 172 172 u16 eee_advert; 173 173 174 174 unsigned long state;
+4 -4
drivers/net/ethernet/intel/igc/igc_ethtool.c
··· 1623 1623 } 1624 1624 1625 1625 static int igc_ethtool_get_eee(struct net_device *netdev, 1626 - struct ethtool_eee *edata) 1626 + struct ethtool_keee *edata) 1627 1627 { 1628 1628 struct igc_adapter *adapter = netdev_priv(netdev); 1629 1629 struct igc_hw *hw = &adapter->hw; ··· 1664 1664 } 1665 1665 1666 1666 static int igc_ethtool_set_eee(struct net_device *netdev, 1667 - struct ethtool_eee *edata) 1667 + struct ethtool_keee *edata) 1668 1668 { 1669 1669 struct igc_adapter *adapter = netdev_priv(netdev); 1670 1670 struct igc_hw *hw = &adapter->hw; 1671 - struct ethtool_eee eee_curr; 1671 + struct ethtool_keee eee_curr; 1672 1672 s32 ret_val; 1673 1673 1674 - memset(&eee_curr, 0, sizeof(struct ethtool_eee)); 1674 + memset(&eee_curr, 0, sizeof(struct ethtool_keee)); 1675 1675 1676 1676 ret_val = igc_ethtool_get_eee(netdev, &eee_curr); 1677 1677 if (ret_val) {
+5 -5
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
··· 3425 3425 }; 3426 3426 3427 3427 static int 3428 - ixgbe_get_eee_fw(struct ixgbe_adapter *adapter, struct ethtool_eee *edata) 3428 + ixgbe_get_eee_fw(struct ixgbe_adapter *adapter, struct ethtool_keee *edata) 3429 3429 { 3430 3430 u32 info[FW_PHY_ACT_DATA_COUNT] = { 0 }; 3431 3431 struct ixgbe_hw *hw = &adapter->hw; ··· 3462 3462 return 0; 3463 3463 } 3464 3464 3465 - static int ixgbe_get_eee(struct net_device *netdev, struct ethtool_eee *edata) 3465 + static int ixgbe_get_eee(struct net_device *netdev, struct ethtool_keee *edata) 3466 3466 { 3467 3467 struct ixgbe_adapter *adapter = netdev_priv(netdev); 3468 3468 struct ixgbe_hw *hw = &adapter->hw; ··· 3476 3476 return -EOPNOTSUPP; 3477 3477 } 3478 3478 3479 - static int ixgbe_set_eee(struct net_device *netdev, struct ethtool_eee *edata) 3479 + static int ixgbe_set_eee(struct net_device *netdev, struct ethtool_keee *edata) 3480 3480 { 3481 3481 struct ixgbe_adapter *adapter = netdev_priv(netdev); 3482 3482 struct ixgbe_hw *hw = &adapter->hw; 3483 - struct ethtool_eee eee_data; 3483 + struct ethtool_keee eee_data; 3484 3484 s32 ret_val; 3485 3485 3486 3486 if (!(adapter->flags2 & IXGBE_FLAG2_EEE_CAPABLE)) 3487 3487 return -EOPNOTSUPP; 3488 3488 3489 - memset(&eee_data, 0, sizeof(struct ethtool_eee)); 3489 + memset(&eee_data, 0, sizeof(struct ethtool_keee)); 3490 3490 3491 3491 ret_val = ixgbe_get_eee(netdev, &eee_data); 3492 3492 if (ret_val)
+2 -2
drivers/net/ethernet/marvell/mvneta.c
··· 5097 5097 } 5098 5098 5099 5099 static int mvneta_ethtool_get_eee(struct net_device *dev, 5100 - struct ethtool_eee *eee) 5100 + struct ethtool_keee *eee) 5101 5101 { 5102 5102 struct mvneta_port *pp = netdev_priv(dev); 5103 5103 u32 lpi_ctl0; ··· 5113 5113 } 5114 5114 5115 5115 static int mvneta_ethtool_set_eee(struct net_device *dev, 5116 - struct ethtool_eee *eee) 5116 + struct ethtool_keee *eee) 5117 5117 { 5118 5118 struct mvneta_port *pp = netdev_priv(dev); 5119 5119 u32 lpi_ctl0;
+2 -2
drivers/net/ethernet/microchip/lan743x_ethtool.c
··· 1055 1055 } 1056 1056 1057 1057 static int lan743x_ethtool_get_eee(struct net_device *netdev, 1058 - struct ethtool_eee *eee) 1058 + struct ethtool_keee *eee) 1059 1059 { 1060 1060 struct lan743x_adapter *adapter = netdev_priv(netdev); 1061 1061 struct phy_device *phydev = netdev->phydev; ··· 1092 1092 } 1093 1093 1094 1094 static int lan743x_ethtool_set_eee(struct net_device *netdev, 1095 - struct ethtool_eee *eee) 1095 + struct ethtool_keee *eee) 1096 1096 { 1097 1097 struct lan743x_adapter *adapter; 1098 1098 struct phy_device *phydev;
+2 -2
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
··· 1776 1776 return 0; 1777 1777 } 1778 1778 1779 - static int qede_get_eee(struct net_device *dev, struct ethtool_eee *edata) 1779 + static int qede_get_eee(struct net_device *dev, struct ethtool_keee *edata) 1780 1780 { 1781 1781 struct qede_dev *edev = netdev_priv(dev); 1782 1782 struct qed_link_output current_link; ··· 1810 1810 return 0; 1811 1811 } 1812 1812 1813 - static int qede_set_eee(struct net_device *dev, struct ethtool_eee *edata) 1813 + static int qede_set_eee(struct net_device *dev, struct ethtool_keee *edata) 1814 1814 { 1815 1815 struct qede_dev *edev = netdev_priv(dev); 1816 1816 struct qed_link_output current_link;
+2 -2
drivers/net/ethernet/realtek/r8169_main.c
··· 1974 1974 return 0; 1975 1975 } 1976 1976 1977 - static int rtl8169_get_eee(struct net_device *dev, struct ethtool_eee *data) 1977 + static int rtl8169_get_eee(struct net_device *dev, struct ethtool_keee *data) 1978 1978 { 1979 1979 struct rtl8169_private *tp = netdev_priv(dev); 1980 1980 ··· 1984 1984 return phy_ethtool_get_eee(tp->phydev, data); 1985 1985 } 1986 1986 1987 - static int rtl8169_set_eee(struct net_device *dev, struct ethtool_eee *data) 1987 + static int rtl8169_set_eee(struct net_device *dev, struct ethtool_keee *data) 1988 1988 { 1989 1989 struct rtl8169_private *tp = netdev_priv(dev); 1990 1990 int ret;
+2 -2
drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c
··· 133 133 #define SXGBE_STATS_LEN ARRAY_SIZE(sxgbe_gstrings_stats) 134 134 135 135 static int sxgbe_get_eee(struct net_device *dev, 136 - struct ethtool_eee *edata) 136 + struct ethtool_keee *edata) 137 137 { 138 138 struct sxgbe_priv_data *priv = netdev_priv(dev); 139 139 ··· 148 148 } 149 149 150 150 static int sxgbe_set_eee(struct net_device *dev, 151 - struct ethtool_eee *edata) 151 + struct ethtool_keee *edata) 152 152 { 153 153 struct sxgbe_priv_data *priv = netdev_priv(dev); 154 154
+2 -2
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
··· 852 852 } 853 853 854 854 static int stmmac_ethtool_op_get_eee(struct net_device *dev, 855 - struct ethtool_eee *edata) 855 + struct ethtool_keee *edata) 856 856 { 857 857 struct stmmac_priv *priv = netdev_priv(dev); 858 858 ··· 868 868 } 869 869 870 870 static int stmmac_ethtool_op_set_eee(struct net_device *dev, 871 - struct ethtool_eee *edata) 871 + struct ethtool_keee *edata) 872 872 { 873 873 struct stmmac_priv *priv = netdev_priv(dev); 874 874 int ret;
+2 -2
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
··· 514 514 return phylink_ethtool_ksettings_set(salve->phylink, ecmd); 515 515 } 516 516 517 - static int am65_cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata) 517 + static int am65_cpsw_get_eee(struct net_device *ndev, struct ethtool_keee *edata) 518 518 { 519 519 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); 520 520 521 521 return phylink_ethtool_get_eee(salve->phylink, edata); 522 522 } 523 523 524 - static int am65_cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata) 524 + static int am65_cpsw_set_eee(struct net_device *ndev, struct ethtool_keee *edata) 525 525 { 526 526 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); 527 527
+2 -2
drivers/net/ethernet/ti/cpsw_ethtool.c
··· 422 422 return phy_ethtool_ksettings_set(cpsw->slaves[slave_no].phy, ecmd); 423 423 } 424 424 425 - int cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata) 425 + int cpsw_get_eee(struct net_device *ndev, struct ethtool_keee *edata) 426 426 { 427 427 struct cpsw_priv *priv = netdev_priv(ndev); 428 428 struct cpsw_common *cpsw = priv->cpsw; ··· 434 434 return -EOPNOTSUPP; 435 435 } 436 436 437 - int cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata) 437 + int cpsw_set_eee(struct net_device *ndev, struct ethtool_keee *edata) 438 438 { 439 439 struct cpsw_priv *priv = netdev_priv(ndev); 440 440 struct cpsw_common *cpsw = priv->cpsw;
+2 -2
drivers/net/ethernet/ti/cpsw_priv.h
··· 496 496 struct ethtool_link_ksettings *ecmd); 497 497 int cpsw_set_link_ksettings(struct net_device *ndev, 498 498 const struct ethtool_link_ksettings *ecmd); 499 - int cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata); 500 - int cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata); 499 + int cpsw_get_eee(struct net_device *ndev, struct ethtool_keee *edata); 500 + int cpsw_set_eee(struct net_device *ndev, struct ethtool_keee *edata); 501 501 int cpsw_nway_reset(struct net_device *ndev); 502 502 void cpsw_get_ringparam(struct net_device *ndev, 503 503 struct ethtool_ringparam *ering,
+2 -2
drivers/net/ethernet/ti/icssg/icssg_ethtool.c
··· 45 45 return phy_ethtool_set_link_ksettings(ndev, ecmd); 46 46 } 47 47 48 - static int emac_get_eee(struct net_device *ndev, struct ethtool_eee *edata) 48 + static int emac_get_eee(struct net_device *ndev, struct ethtool_keee *edata) 49 49 { 50 50 if (!ndev->phydev) 51 51 return -EOPNOTSUPP; ··· 53 53 return phy_ethtool_get_eee(ndev->phydev, edata); 54 54 } 55 55 56 - static int emac_set_eee(struct net_device *ndev, struct ethtool_eee *edata) 56 + static int emac_set_eee(struct net_device *ndev, struct ethtool_keee *edata) 57 57 { 58 58 if (!ndev->phydev) 59 59 return -EOPNOTSUPP;
+1 -1
drivers/net/phy/marvell.c
··· 1461 1461 1462 1462 static int m88e1540_set_fld(struct phy_device *phydev, const u8 *msecs) 1463 1463 { 1464 - struct ethtool_eee eee; 1464 + struct ethtool_keee eee; 1465 1465 int val, ret; 1466 1466 1467 1467 if (*msecs == ETHTOOL_PHY_FAST_LINK_DOWN_OFF)
+4 -4
drivers/net/phy/phy-c45.c
··· 1443 1443 /** 1444 1444 * genphy_c45_ethtool_get_eee - get EEE supported and status 1445 1445 * @phydev: target phy_device struct 1446 - * @data: ethtool_eee data 1446 + * @data: ethtool_keee data 1447 1447 * 1448 1448 * Description: it reports the Supported/Advertisement/LP Advertisement 1449 1449 * capabilities. 1450 1450 */ 1451 1451 int genphy_c45_ethtool_get_eee(struct phy_device *phydev, 1452 - struct ethtool_eee *data) 1452 + struct ethtool_keee *data) 1453 1453 { 1454 1454 __ETHTOOL_DECLARE_LINK_MODE_MASK(adv) = {}; 1455 1455 __ETHTOOL_DECLARE_LINK_MODE_MASK(lp) = {}; ··· 1481 1481 /** 1482 1482 * genphy_c45_ethtool_set_eee - set EEE supported and status 1483 1483 * @phydev: target phy_device struct 1484 - * @data: ethtool_eee data 1484 + * @data: ethtool_keee data 1485 1485 * 1486 1486 * Description: sets the Supported/Advertisement/LP Advertisement 1487 1487 * capabilities. If eee_enabled is false, no links modes are ··· 1490 1490 * non-destructive way. 1491 1491 */ 1492 1492 int genphy_c45_ethtool_set_eee(struct phy_device *phydev, 1493 - struct ethtool_eee *data) 1493 + struct ethtool_keee *data) 1494 1494 { 1495 1495 int ret; 1496 1496
+4 -4
drivers/net/phy/phy.c
··· 1632 1632 /** 1633 1633 * phy_ethtool_get_eee - get EEE supported and status 1634 1634 * @phydev: target phy_device struct 1635 - * @data: ethtool_eee data 1635 + * @data: ethtool_keee data 1636 1636 * 1637 1637 * Description: it reportes the Supported/Advertisement/LP Advertisement 1638 1638 * capabilities. 1639 1639 */ 1640 - int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_eee *data) 1640 + int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_keee *data) 1641 1641 { 1642 1642 int ret; 1643 1643 ··· 1655 1655 /** 1656 1656 * phy_ethtool_set_eee - set EEE supported and status 1657 1657 * @phydev: target phy_device struct 1658 - * @data: ethtool_eee data 1658 + * @data: ethtool_keee data 1659 1659 * 1660 1660 * Description: it is to program the Advertisement EEE register. 1661 1661 */ 1662 - int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data) 1662 + int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_keee *data) 1663 1663 { 1664 1664 int ret; 1665 1665
+4 -4
drivers/net/phy/phylink.c
··· 2764 2764 /** 2765 2765 * phylink_ethtool_get_eee() - read the energy efficient ethernet parameters 2766 2766 * @pl: a pointer to a &struct phylink returned from phylink_create() 2767 - * @eee: a pointer to a &struct ethtool_eee for the read parameters 2767 + * @eee: a pointer to a &struct ethtool_keee for the read parameters 2768 2768 */ 2769 - int phylink_ethtool_get_eee(struct phylink *pl, struct ethtool_eee *eee) 2769 + int phylink_ethtool_get_eee(struct phylink *pl, struct ethtool_keee *eee) 2770 2770 { 2771 2771 int ret = -EOPNOTSUPP; 2772 2772 ··· 2782 2782 /** 2783 2783 * phylink_ethtool_set_eee() - set the energy efficient ethernet parameters 2784 2784 * @pl: a pointer to a &struct phylink returned from phylink_create() 2785 - * @eee: a pointer to a &struct ethtool_eee for the desired parameters 2785 + * @eee: a pointer to a &struct ethtool_keee for the desired parameters 2786 2786 */ 2787 - int phylink_ethtool_set_eee(struct phylink *pl, struct ethtool_eee *eee) 2787 + int phylink_ethtool_set_eee(struct phylink *pl, struct ethtool_keee *eee) 2788 2788 { 2789 2789 int ret = -EOPNOTSUPP; 2790 2790
+5 -5
drivers/net/usb/ax88179_178a.c
··· 667 667 } 668 668 669 669 static int 670 - ax88179_ethtool_get_eee(struct usbnet *dev, struct ethtool_eee *data) 670 + ax88179_ethtool_get_eee(struct usbnet *dev, struct ethtool_keee *data) 671 671 { 672 672 int val; 673 673 ··· 696 696 } 697 697 698 698 static int 699 - ax88179_ethtool_set_eee(struct usbnet *dev, struct ethtool_eee *data) 699 + ax88179_ethtool_set_eee(struct usbnet *dev, struct ethtool_keee *data) 700 700 { 701 701 u16 tmp16 = ethtool_adv_to_mmd_eee_adv_t(data->advertised); 702 702 ··· 807 807 GMII_PHY_PAGE_SELECT, 2, &tmp16); 808 808 } 809 809 810 - static int ax88179_get_eee(struct net_device *net, struct ethtool_eee *edata) 810 + static int ax88179_get_eee(struct net_device *net, struct ethtool_keee *edata) 811 811 { 812 812 struct usbnet *dev = netdev_priv(net); 813 813 struct ax88179_data *priv = dev->driver_priv; ··· 818 818 return ax88179_ethtool_get_eee(dev, edata); 819 819 } 820 820 821 - static int ax88179_set_eee(struct net_device *net, struct ethtool_eee *edata) 821 + static int ax88179_set_eee(struct net_device *net, struct ethtool_keee *edata) 822 822 { 823 823 struct usbnet *dev = netdev_priv(net); 824 824 struct ax88179_data *priv = dev->driver_priv; ··· 1587 1587 u16 *tmp16; 1588 1588 u8 *tmp; 1589 1589 struct ax88179_data *ax179_data = dev->driver_priv; 1590 - struct ethtool_eee eee_data; 1590 + struct ethtool_keee eee_data; 1591 1591 1592 1592 tmp16 = (u16 *)buf; 1593 1593 tmp = (u8 *)buf;
+2 -2
drivers/net/usb/lan78xx.c
··· 1673 1673 return ret; 1674 1674 } 1675 1675 1676 - static int lan78xx_get_eee(struct net_device *net, struct ethtool_eee *edata) 1676 + static int lan78xx_get_eee(struct net_device *net, struct ethtool_keee *edata) 1677 1677 { 1678 1678 struct lan78xx_net *dev = netdev_priv(net); 1679 1679 struct phy_device *phydev = net->phydev; ··· 1709 1709 return ret; 1710 1710 } 1711 1711 1712 - static int lan78xx_set_eee(struct net_device *net, struct ethtool_eee *edata) 1712 + static int lan78xx_set_eee(struct net_device *net, struct ethtool_keee *edata) 1713 1713 { 1714 1714 struct lan78xx_net *dev = netdev_priv(net); 1715 1715 int ret;
+7 -7
drivers/net/usb/r8152.c
··· 891 891 void (*up)(struct r8152 *tp); 892 892 void (*down)(struct r8152 *tp); 893 893 void (*unload)(struct r8152 *tp); 894 - int (*eee_get)(struct r8152 *tp, struct ethtool_eee *eee); 895 - int (*eee_set)(struct r8152 *tp, struct ethtool_eee *eee); 894 + int (*eee_get)(struct r8152 *tp, struct ethtool_keee *eee); 895 + int (*eee_set)(struct r8152 *tp, struct ethtool_keee *eee); 896 896 bool (*in_nway)(struct r8152 *tp); 897 897 void (*hw_phy_cfg)(struct r8152 *tp); 898 898 void (*autosuspend_en)(struct r8152 *tp, bool enable); ··· 8922 8922 } 8923 8923 } 8924 8924 8925 - static int r8152_get_eee(struct r8152 *tp, struct ethtool_eee *eee) 8925 + static int r8152_get_eee(struct r8152 *tp, struct ethtool_keee *eee) 8926 8926 { 8927 8927 u32 lp, adv, supported = 0; 8928 8928 u16 val; ··· 8945 8945 return 0; 8946 8946 } 8947 8947 8948 - static int r8152_set_eee(struct r8152 *tp, struct ethtool_eee *eee) 8948 + static int r8152_set_eee(struct r8152 *tp, struct ethtool_keee *eee) 8949 8949 { 8950 8950 u16 val = ethtool_adv_to_mmd_eee_adv_t(eee->advertised); 8951 8951 ··· 8957 8957 return 0; 8958 8958 } 8959 8959 8960 - static int r8153_get_eee(struct r8152 *tp, struct ethtool_eee *eee) 8960 + static int r8153_get_eee(struct r8152 *tp, struct ethtool_keee *eee) 8961 8961 { 8962 8962 u32 lp, adv, supported = 0; 8963 8963 u16 val; ··· 8981 8981 } 8982 8982 8983 8983 static int 8984 - rtl_ethtool_get_eee(struct net_device *net, struct ethtool_eee *edata) 8984 + rtl_ethtool_get_eee(struct net_device *net, struct ethtool_keee *edata) 8985 8985 { 8986 8986 struct r8152 *tp = netdev_priv(net); 8987 8987 int ret; ··· 9008 9008 } 9009 9009 9010 9010 static int 9011 - rtl_ethtool_set_eee(struct net_device *net, struct ethtool_eee *edata) 9011 + rtl_ethtool_set_eee(struct net_device *net, struct ethtool_keee *edata) 9012 9012 { 9013 9013 struct r8152 *tp = netdev_priv(net); 9014 9014 int ret;
+14 -2
include/linux/ethtool.h
··· 222 222 __ethtool_get_link_ksettings(struct net_device *dev, 223 223 struct ethtool_link_ksettings *link_ksettings); 224 224 225 + struct ethtool_keee { 226 + u32 cmd; 227 + u32 supported; 228 + u32 advertised; 229 + u32 lp_advertised; 230 + u32 eee_active; 231 + u32 eee_enabled; 232 + u32 tx_lpi_enabled; 233 + u32 tx_lpi_timer; 234 + u32 reserved[2]; 235 + }; 236 + 225 237 struct kernel_ethtool_coalesce { 226 238 u8 use_cqe_mode_tx; 227 239 u8 use_cqe_mode_rx; ··· 904 892 struct ethtool_modinfo *); 905 893 int (*get_module_eeprom)(struct net_device *, 906 894 struct ethtool_eeprom *, u8 *); 907 - int (*get_eee)(struct net_device *, struct ethtool_eee *); 908 - int (*set_eee)(struct net_device *, struct ethtool_eee *); 895 + int (*get_eee)(struct net_device *dev, struct ethtool_keee *eee); 896 + int (*set_eee)(struct net_device *dev, struct ethtool_keee *eee); 909 897 int (*get_tunable)(struct net_device *, 910 898 const struct ethtool_tunable *, void *); 911 899 int (*set_tunable)(struct net_device *,
+4 -4
include/linux/phy.h
··· 1908 1908 int genphy_c45_eee_is_active(struct phy_device *phydev, unsigned long *adv, 1909 1909 unsigned long *lp, bool *is_enabled); 1910 1910 int genphy_c45_ethtool_get_eee(struct phy_device *phydev, 1911 - struct ethtool_eee *data); 1911 + struct ethtool_keee *data); 1912 1912 int genphy_c45_ethtool_set_eee(struct phy_device *phydev, 1913 - struct ethtool_eee *data); 1913 + struct ethtool_keee *data); 1914 1914 int genphy_c45_write_eee_adv(struct phy_device *phydev, unsigned long *adv); 1915 1915 int genphy_c45_an_config_eee_aneg(struct phy_device *phydev); 1916 1916 int genphy_c45_read_eee_adv(struct phy_device *phydev, unsigned long *adv); ··· 1988 1988 1989 1989 int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable); 1990 1990 int phy_get_eee_err(struct phy_device *phydev); 1991 - int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data); 1992 - int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_eee *data); 1991 + int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_keee *data); 1992 + int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_keee *data); 1993 1993 int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol); 1994 1994 void phy_ethtool_get_wol(struct phy_device *phydev, 1995 1995 struct ethtool_wolinfo *wol);
+2 -2
include/linux/phylink.h
··· 584 584 struct ethtool_pauseparam *); 585 585 int phylink_get_eee_err(struct phylink *); 586 586 int phylink_init_eee(struct phylink *, bool); 587 - int phylink_ethtool_get_eee(struct phylink *, struct ethtool_eee *); 588 - int phylink_ethtool_set_eee(struct phylink *, struct ethtool_eee *); 587 + int phylink_ethtool_get_eee(struct phylink *link, struct ethtool_keee *eee); 588 + int phylink_ethtool_set_eee(struct phylink *link, struct ethtool_keee *eee); 589 589 int phylink_mii_ioctl(struct phylink *, struct ifreq *, int); 590 590 int phylink_speed_down(struct phylink *pl, bool sync); 591 591 int phylink_speed_up(struct phylink *pl);
+2 -2
include/net/dsa.h
··· 991 991 * Port's MAC EEE settings 992 992 */ 993 993 int (*set_mac_eee)(struct dsa_switch *ds, int port, 994 - struct ethtool_eee *e); 994 + struct ethtool_keee *e); 995 995 int (*get_mac_eee)(struct dsa_switch *ds, int port, 996 - struct ethtool_eee *e); 996 + struct ethtool_keee *e); 997 997 998 998 /* EEPROM access */ 999 999 int (*get_eeprom_len)(struct dsa_switch *ds);
+2 -2
net/dsa/user.c
··· 1222 1222 return ret; 1223 1223 } 1224 1224 1225 - static int dsa_user_set_eee(struct net_device *dev, struct ethtool_eee *e) 1225 + static int dsa_user_set_eee(struct net_device *dev, struct ethtool_keee *e) 1226 1226 { 1227 1227 struct dsa_port *dp = dsa_user_to_port(dev); 1228 1228 struct dsa_switch *ds = dp->ds; ··· 1242 1242 return phylink_ethtool_set_eee(dp->pl, e); 1243 1243 } 1244 1244 1245 - static int dsa_user_get_eee(struct net_device *dev, struct ethtool_eee *e) 1245 + static int dsa_user_get_eee(struct net_device *dev, struct ethtool_keee *e) 1246 1246 { 1247 1247 struct dsa_port *dp = dsa_user_to_port(dev); 1248 1248 struct dsa_switch *ds = dp->ds;
+5 -5
net/ethtool/eee.c
··· 5 5 #include "bitset.h" 6 6 7 7 #define EEE_MODES_COUNT \ 8 - (sizeof_field(struct ethtool_eee, supported) * BITS_PER_BYTE) 8 + (sizeof_field(struct ethtool_keee, supported) * BITS_PER_BYTE) 9 9 10 10 struct eee_req_info { 11 11 struct ethnl_req_info base; ··· 13 13 14 14 struct eee_reply_data { 15 15 struct ethnl_reply_data base; 16 - struct ethtool_eee eee; 16 + struct ethtool_keee eee; 17 17 }; 18 18 19 19 #define EEE_REPDATA(__reply_base) \ ··· 48 48 { 49 49 bool compact = req_base->flags & ETHTOOL_FLAG_COMPACT_BITSETS; 50 50 const struct eee_reply_data *data = EEE_REPDATA(reply_base); 51 - const struct ethtool_eee *eee = &data->eee; 51 + const struct ethtool_keee *eee = &data->eee; 52 52 int len = 0; 53 53 int ret; 54 54 ··· 84 84 { 85 85 bool compact = req_base->flags & ETHTOOL_FLAG_COMPACT_BITSETS; 86 86 const struct eee_reply_data *data = EEE_REPDATA(reply_base); 87 - const struct ethtool_eee *eee = &data->eee; 87 + const struct ethtool_keee *eee = &data->eee; 88 88 int ret; 89 89 90 90 ret = ethnl_put_bitset32(skb, ETHTOOL_A_EEE_MODES_OURS, ··· 132 132 { 133 133 struct net_device *dev = req_info->dev; 134 134 struct nlattr **tb = info->attrs; 135 - struct ethtool_eee eee = {}; 135 + struct ethtool_keee eee = {}; 136 136 bool mod = false; 137 137 int ret; 138 138
+3 -3
net/ethtool/ioctl.c
··· 1510 1510 1511 1511 static int ethtool_get_eee(struct net_device *dev, char __user *useraddr) 1512 1512 { 1513 - struct ethtool_eee edata; 1513 + struct ethtool_keee edata; 1514 1514 int rc; 1515 1515 1516 1516 if (!dev->ethtool_ops->get_eee) 1517 1517 return -EOPNOTSUPP; 1518 1518 1519 - memset(&edata, 0, sizeof(struct ethtool_eee)); 1519 + memset(&edata, 0, sizeof(struct ethtool_keee)); 1520 1520 edata.cmd = ETHTOOL_GEEE; 1521 1521 rc = dev->ethtool_ops->get_eee(dev, &edata); 1522 1522 ··· 1531 1531 1532 1532 static int ethtool_set_eee(struct net_device *dev, char __user *useraddr) 1533 1533 { 1534 - struct ethtool_eee edata; 1534 + struct ethtool_keee edata; 1535 1535 int ret; 1536 1536 1537 1537 if (!dev->ethtool_ops->set_eee)