* [net-next PATCH] ixgbe: Fix a set_num_queues() bug that can result in num_(r|t)x_queues = 0
@ 2009-02-07 8:33 Jeff Kirsher
2009-02-07 10:17 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Kirsher @ 2009-02-07 8:33 UTC (permalink / raw)
To: davem; +Cc: netdev, jeff, gospo, Peter P Waskiewicz Jr, Jeff Kirsher
From: PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>
Now that our set_num_queues() routines for each feature are re-entrant, and
can be called at any point, they shouldn't zero out the feature's indices
or mask bits. Subsequent calls into those routines for those features can
result in zero Rx and Tx queues being assigned, causing a panic later in
driver reinitialization.
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ixgbe/ixgbe_main.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 8e270b6..a3572d1 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -2350,8 +2350,6 @@ static inline bool ixgbe_set_dcb_queues(struct ixgbe_adapter *adapter)
adapter->ring_feature[RING_F_DCB].indices;
ret = true;
} else {
- adapter->ring_feature[RING_F_DCB].mask = 0;
- adapter->ring_feature[RING_F_DCB].indices = 0;
ret = false;
}
@@ -2371,8 +2369,6 @@ static inline bool ixgbe_set_rss_queues(struct ixgbe_adapter *adapter)
adapter->ring_feature[RING_F_RSS].indices;
ret = true;
} else {
- adapter->ring_feature[RING_F_RSS].mask = 0;
- adapter->ring_feature[RING_F_RSS].indices = 0;
ret = false;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-next PATCH] ixgbe: Fix a set_num_queues() bug that can result in num_(r|t)x_queues = 0
2009-02-07 8:33 [net-next PATCH] ixgbe: Fix a set_num_queues() bug that can result in num_(r|t)x_queues = 0 Jeff Kirsher
@ 2009-02-07 10:17 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-02-07 10:17 UTC (permalink / raw)
To: jeffrey.t.kirsher; +Cc: netdev, jeff, gospo, peter.p.waskiewicz.jr
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Sat, 07 Feb 2009 00:33:02 -0800
> Now that our set_num_queues() routines for each feature are re-entrant, and
> can be called at any point, they shouldn't zero out the feature's indices
> or mask bits. Subsequent calls into those routines for those features can
> result in zero Rx and Tx queues being assigned, causing a panic later in
> driver reinitialization.
>
> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-07 10:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07 8:33 [net-next PATCH] ixgbe: Fix a set_num_queues() bug that can result in num_(r|t)x_queues = 0 Jeff Kirsher
2009-02-07 10:17 ` David Miller
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).