login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-netdev
»
2010
»
April
»
27
Re: [PATCH net-next] cxgb4: set skb->rxhash
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dimitris Michailidis
Subject:
Re: [PATCH net-next] cxgb4: set skb->rxhash
Date: Tuesday, April 27, 2010 - 3:39 pm
Stephen Hemminger wrote:
quoted text
> On Tue, 27 Apr 2010 15:20:25 -0700 > Dimitris Michailidis <dm@chelsio.com> wrote: > >> Implement the ->set_flags ethtool method to control NETIF_F_RXHASH and >> set skb->rxhash to the HW calculated hash accordingly. >> >> Signed-off-by: Dimitris Michailidis <dm@chelsio.com> >> --- >> drivers/net/cxgb4/cxgb4_main.c | 15 ++++++++++++++- >> drivers/net/cxgb4/sge.c | 7 ++++++- >> drivers/net/cxgb4/t4_msg.h | 1 + >> 3 files changed, 21 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c >> index 5f582db..1bad500 100644 >> --- a/drivers/net/cxgb4/cxgb4_main.c >> +++ b/drivers/net/cxgb4/cxgb4_main.c >> @@ -1711,6 +1711,18 @@ static int set_tso(struct net_device *dev, u32 value) >> return 0; >> } >> >> +static int set_flags(struct net_device *dev, u32 flags) >> +{ >> + if (flags & ~ETH_FLAG_RXHASH) >> + return -EOPNOTSUPP; >> + >> + if (flags & ETH_FLAG_RXHASH) >> + dev->features |= NETIF_F_RXHASH; >> + else >> + dev->features &= ~NETIF_F_RXHASH; >> + return 0; >> +} > > You need to check for and reject other values NTUPLE and LRO
The first if does that, doesn't it? -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH net-next] cxgb4: set skb->rxhash
, Dimitris Michailidis
, (Tue Apr 27, 3:20 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, Stephen Hemminger
, (Tue Apr 27, 3:36 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, Dimitris Michailidis
, (Tue Apr 27, 3:39 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, Eric Dumazet
, (Tue Apr 27, 3:43 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, David Miller
, (Tue Apr 27, 3:43 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, David Miller
, (Tue Apr 27, 3:44 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, David Miller
, (Tue Apr 27, 3:45 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, Dimitris Michailidis
, (Tue Apr 27, 3:46 pm)
Re: [PATCH net-next] cxgb4: set skb->rxhash
, David Miller
, (Tue Apr 27, 3:47 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate