ethtool: Add n-tuple string length to drvinfo and return it
[linux-2.6-block.git] / net / core / ethtool.c
index 31b1eddc1b84cbb5e42fea62cad9a8da2db712cd..1c94f48e27b5b7eaabfa43eca9459ba565fb83de 100644 (file)
@@ -224,6 +224,9 @@ static noinline int ethtool_get_drvinfo(struct net_device *dev, void __user *use
                rc = ops->get_sset_count(dev, ETH_SS_PRIV_FLAGS);
                if (rc >= 0)
                        info.n_priv_flags = rc;
+               rc = ops->get_sset_count(dev, ETH_SS_NTUPLE_FILTERS);
+               if (rc >= 0)
+                       info.n_ntuples = rc;
        }
        if (ops->get_regs_len)
                info.regdump_len = ops->get_regs_len(dev);