netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] typhoon: wait for RX mode commands to finish
@ 2010-10-24 20:20 David Dillow
  2010-10-24 20:20 ` [PATCH 2/2] typhoon: update to new VLAN acceleration model David Dillow
  2010-10-24 23:26 ` [PATCH 1/2] typhoon: wait for RX mode commands to finish David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: David Dillow @ 2010-10-24 20:20 UTC (permalink / raw)
  To: netdev; +Cc: davem

When adding VLAN devices, we can get several calls to
typhoon_set_rx_mode() in quick succession. Because we didn't wait for
the commands to complete, we could run out of command descriptors and
fail to set the RX mode.

Signed-off-by: David Dillow <dave@thedillows.org>
---
 drivers/net/typhoon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c
index 1cc6713..5957d4e 100644
--- a/drivers/net/typhoon.c
+++ b/drivers/net/typhoon.c
@@ -936,7 +936,7 @@ typhoon_set_rx_mode(struct net_device *dev)
 		filter |= TYPHOON_RX_FILTER_MCAST_HASH;
 	}
 
-	INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER);
+	INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER);
 	xp_cmd.parm1 = filter;
 	typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL);
 }
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-24 23:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-24 20:20 [PATCH 1/2] typhoon: wait for RX mode commands to finish David Dillow
2010-10-24 20:20 ` [PATCH 2/2] typhoon: update to new VLAN acceleration model David Dillow
2010-10-24 23:26   ` David Miller
2010-10-24 23:26 ` [PATCH 1/2] typhoon: wait for RX mode commands to finish 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).