Skip to content

Commit

Permalink
myri10ge: disable NAPI on failure to setup the interface
Browse files Browse the repository at this point in the history
Disable NAPI if a failure occurs when setting up the interface. Leaving
it enabled could cause a BUG the next time an ifconfig up is issued.

Signed-off-by: Brice Goglin <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
Brice Goglin authored and Jeff Garzik committed Oct 22, 2008
1 parent cde0d91 commit 051d36f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#include "myri10ge_mcp.h"
#include "myri10ge_mcp_gen_header.h"

#define MYRI10GE_VERSION_STR "1.4.3-1.369"
#define MYRI10GE_VERSION_STR "1.4.3-1.371"

MODULE_DESCRIPTION("Myricom 10G driver (10GbE)");
MODULE_AUTHOR("Maintainer: [email protected]");
Expand Down Expand Up @@ -2497,6 +2497,10 @@ static int myri10ge_open(struct net_device *dev)
return 0;

abort_with_rings:
while (slice) {
slice--;
napi_disable(&mgp->ss[slice].napi);
}
for (i = 0; i < mgp->num_slices; i++)
myri10ge_free_rings(&mgp->ss[i]);

Expand Down

0 comments on commit 051d36f

Please sign in to comment.