From: Mark McLoughlin <markmc@redhat.com>
To: Avi Kivity <avi@qumranet.com>
Cc: kvm@vger.kernel.org, Mark McLoughlin <markmc@redhat.com>
Subject: [PATCH 3/3] virtio_net: support ethtool offload queries
Date: Wed, 22 Oct 2008 16:20:30 +0100 [thread overview]
Message-ID: <1224688830-26216-4-git-send-email-markmc@redhat.com> (raw)
In-Reply-To: <1224688830-26216-3-git-send-email-markmc@redhat.com>
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 <markmc@redhat.com>
---
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
next prev parent reply other threads:[~2008-10-22 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 15:20 [PATCH 0/3] Some kvm-guest-drivers-linux/virtio_net fixes Mark McLoughlin
2008-10-22 15:20 ` [PATCH 1/3] virtio_net: Fix leaked netdev->refcnt Mark McLoughlin
2008-10-22 15:20 ` [PATCH 2/3] virtio_net: Make use of napi_weight module param Mark McLoughlin
2008-10-22 15:20 ` Mark McLoughlin [this message]
2008-10-26 14:17 ` [PATCH 1/3] virtio_net: Fix leaked netdev->refcnt Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1224688830-26216-4-git-send-email-markmc@redhat.com \
--to=markmc@redhat.com \
--cc=avi@qumranet.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.