* [PATCH] ixgbe: RX ntuple feature must check num_rx_queues
@ 2011-05-10 14:21 Sebastian.Poehn
2011-05-10 18:52 ` Jeff Kirsher
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian.Poehn @ 2011-05-10 14:21 UTC (permalink / raw)
To: netdev
The driver must check how much RX queues there are, not TX queues.
--- ixgbe_ethtool.c.orig 2011-05-10 16:18:00.313745560 +0200
+++ ixgbe_ethtool.c 2011-05-10 16:18:23.285747635 +0200
@@ -2349,9 +2349,9 @@ static int ixgbe_set_rx_ntuple(struct ne
/*
* Don't allow programming if the action is a queue greater than
- * the number of online Tx queues.
+ * the number of online Rx queues.
*/
- if ((fs->action >= adapter->num_tx_queues) ||
+ if ((fs->action >= adapter->num_rx_queues) ||
(fs->action < ETHTOOL_RXNTUPLE_ACTION_DROP))
return -EINVAL;
Signed-off-by: Sebastian Poehn <sebastian.poehn@belden.com>
DISCLAIMER:
Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.
Thank You.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ixgbe: RX ntuple feature must check num_rx_queues
2011-05-10 14:21 [PATCH] ixgbe: RX ntuple feature must check num_rx_queues Sebastian.Poehn
@ 2011-05-10 18:52 ` Jeff Kirsher
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Kirsher @ 2011-05-10 18:52 UTC (permalink / raw)
To: Sebastian.Poehn; +Cc: netdev
On Tue, May 10, 2011 at 07:21, <Sebastian.Poehn@belden.com> wrote:
> The driver must check how much RX queues there are, not TX queues.
>
> --- ixgbe_ethtool.c.orig 2011-05-10 16:18:00.313745560 +0200
> +++ ixgbe_ethtool.c 2011-05-10 16:18:23.285747635 +0200
> @@ -2349,9 +2349,9 @@ static int ixgbe_set_rx_ntuple(struct ne
>
> /*
> * Don't allow programming if the action is a queue greater than
> - * the number of online Tx queues.
> + * the number of online Rx queues.
> */
> - if ((fs->action >= adapter->num_tx_queues) ||
> + if ((fs->action >= adapter->num_rx_queues) ||
> (fs->action < ETHTOOL_RXNTUPLE_ACTION_DROP))
> return -EINVAL;
>
> Signed-off-by: Sebastian Poehn <sebastian.poehn@belden.com>
Thanks Sebastian, I have added the patch to my queue of patches.
--
Cheers,
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-10 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 14:21 [PATCH] ixgbe: RX ntuple feature must check num_rx_queues Sebastian.Poehn
2011-05-10 18:52 ` Jeff Kirsher
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).