From: Stanislaw Gruszka <sgruszka@redhat.com>
To: netdev@vger.kernel.org
Cc: Amerigo Wang <amwang@redhat.com>,
Ben Hutchings <bhutchings@solarflare.com>
Subject: [PATCH -next] sfc: set/clear NETIF_F_RXHASH bit directly
Date: Tue, 29 Jun 2010 16:35:20 +0200 [thread overview]
Message-ID: <20100629163520.642590bf@dhcp-lab-109.englab.brq.redhat.com> (raw)
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
drivers/net/sfc/ethtool.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c
index 7693cfb..fd55123 100644
--- a/drivers/net/sfc/ethtool.c
+++ b/drivers/net/sfc/ethtool.c
@@ -554,7 +554,12 @@ static int efx_ethtool_set_flags(struct net_device *net_dev, u32 data)
if (data & ~supported)
return -EOPNOTSUPP;
- return ethtool_op_set_flags(net_dev, data);
+ if (data & ETH_FLAG_RXHASH)
+ net_dev->features |= NETIF_F_RXHASH;
+ else
+ net_dev->features &= ~NETIF_F_RXHASH;
+
+ return 0;
}
static void efx_ethtool_self_test(struct net_device *net_dev,
--
1.5.5.6
next reply other threads:[~2010-06-29 14:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 14:35 Stanislaw Gruszka [this message]
2010-06-29 14:43 ` [PATCH -next] sfc: set/clear NETIF_F_RXHASH bit directly Ben Hutchings
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=20100629163520.642590bf@dhcp-lab-109.englab.brq.redhat.com \
--to=sgruszka@redhat.com \
--cc=amwang@redhat.com \
--cc=bhutchings@solarflare.com \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).