Since 2.6.24, if get_tx_csum, get_sg or get_tso are NULL then the
default ethtool_op_get_xxx functions are called. Before 2.6.24,
however, these need to be manually hooked in.

Signed-off-by: Mark McLoughlin <[EMAIL PROTECTED]>
---
 hack-module.awk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/hack-module.awk b/hack-module.awk
index b401aae..4bb5317 100644
--- a/hack-module.awk
+++ b/hack-module.awk
@@ -148,6 +148,12 @@
     need_endif = 1;
 }
 
+/.set_tx_csum = virtnet_set_tx_csum,/ {
+    print "\t.get_tx_csum = ethtool_op_get_tx_csum,";
+    print "\t.get_sg = ethtool_op_get_sg,";
+    print "\t.get_tso = ethtool_op_get_tso,";
+}
+
 { sub(/\<pci_dev->revision\>/, "pci_dev_revision(pci_dev)") }
 
 { print }
-- 
1.5.5.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to