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

ethtool.h: remind to update 802.3ad when adding new speeds

Each time a new speed is added, the bonding 802.3ad isn't updated. Add a
comment to remind the developer to update this driver.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Nicolas Dichtel and committed by
David S. Miller
297fb414 3fcd64cf

+4 -2
+4 -2
include/uapi/linux/ethtool.h
··· 1486 1486 * it was forced up into this mode or autonegotiated. 1487 1487 */ 1488 1488 1489 - /* The forced speed, in units of 1Mb. All values 0 to INT_MAX are legal. */ 1490 - /* Update drivers/net/phy/phy.c:phy_speed_to_str() when adding new values */ 1489 + /* The forced speed, in units of 1Mb. All values 0 to INT_MAX are legal. 1490 + * Update drivers/net/phy/phy.c:phy_speed_to_str() and 1491 + * drivers/net/bonding/bond_3ad.c:__get_link_speed() when adding new values. 1492 + */ 1491 1493 #define SPEED_10 10 1492 1494 #define SPEED_100 100 1493 1495 #define SPEED_1000 1000