bonding: add more ethtool support
authorStephen Hemminger <shemminger@vyatta.com>
Sun, 14 Sep 2008 01:17:09 +0000 (21:17 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:59:02 +0000 (18:59 -0400)
This patch allows reporting the link, checksum, and feature settings
of bonded device by using generic hooks.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/bonding/bond_main.c

index babe4610c39af1375ab7551da85639fe31003e71..8e2be24f3fe4c2e0f73062092a87f0b03da2f382 100644 (file)
@@ -4493,6 +4493,12 @@ static void bond_ethtool_get_drvinfo(struct net_device *bond_dev,
 
 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,
 };
 
 /*