Skip to contentSkip to conversation

bonding: add more ethtool support

PATCH Applied Stephen Hemminger 3 participants 3 messages Aug 11, 2008 – Sep 14, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bonding: add more ethtool support

This patch allows reporting the link, checksum, and feature settings of bonded device by using generic hooks.

drivers/net/bonding/bond_main.c +6 -0
@@ -4493,6 +4493,12 @@ static void bond_ethtool_get_drvinfo(str
 
 static const struct ethtool_ops bond_ethtool_ops = {
 	.get_drvinfo		= bond_ethtool_get_drvinfo,
+	.get_link		= ethtool_op_get_link,
+	.get_tx_csum		= ethtool_op_get_tx_csum,
+	.get_sg			= ethtool_op_get_sg,
+	.get_tso		= ethtool_op_get_tso,
+	.get_ufo		= ethtool_op_get_ufo,
+	.get_flags		= ethtool_op_get_flags,
 };
 
 /*
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Stephen Hemminger

This patch allows reporting the link, checksum, and feature settings of bonded device by using generic hooks.

drivers/net/bonding/bond_main.c +0 -0
@@ -4493,6 +4493,12 @@ static void bond_ethtool_get_drvinfo(str
 
 static const struct ethtool_ops bond_ethtool_ops = {

drivers/net/bonding/bond_main.c static void bond_ethtool_get_drvinfo(str · line 4504

Quoted 10 lines
drivers/net/bonding/bond_main.c +6 -0
 	.get_drvinfo		= bond_ethtool_get_drvinfo,
+	.get_link		= ethtool_op_get_link,
+	.get_tx_csum		= ethtool_op_get_tx_csum,
+	.get_sg			= ethtool_op_get_sg,
+	.get_tso		= ethtool_op_get_tso,
+	.get_ufo		= ethtool_op_get_ufo,
+	.get_flags		= ethtool_op_get_flags,
 };
 
 /*

Jeff, please apply.

	-J

---
-Jay Vosburgh, IBM Linux Technology Center, [email protected]

Applied
#2 lore raw
Quoted 21 lines · Jay Vosburgh
Quoted 19 lines · Stephen Hemminger

This patch allows reporting the link, checksum, and feature settings of bonded device by using generic hooks.

drivers/net/bonding/bond_main.c +6 -0
@@ -4493,6 +4493,12 @@ static void bond_ethtool_get_drvinfo(str
 
 static const struct ethtool_ops bond_ethtool_ops = {
 	.get_drvinfo		= bond_ethtool_get_drvinfo,
+	.get_link		= ethtool_op_get_link,
+	.get_tx_csum		= ethtool_op_get_tx_csum,
+	.get_sg			= ethtool_op_get_sg,
+	.get_tso		= ethtool_op_get_tso,
+	.get_ufo		= ethtool_op_get_ufo,
+	.get_flags		= ethtool_op_get_flags,
 };
 
Quoted 5 lines

drivers/net/bonding/bond_main.c static void bond_ethtool_get_drvinfo(str · line 4504

Quoted 1 line
drivers/net/bonding/bond_main.c +0 -0
 /*

Jeff, please apply.

applied