Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268553
b: refs/heads/master
c: d515d0f
h: refs/heads/master
i:
  268551: 6a6a235
v: v3
  • Loading branch information
Haiyang Zhang authored and Greg Kroah-Hartman committed Sep 30, 2011
1 parent 5d94682 commit 6c31b8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 657d1b0dfc97e2256257320f0818e21cf360d0ce
refs/heads/master: d515d0ff36a7afd528f32e3511780ad8385d957e
2 changes: 0 additions & 2 deletions trunk/drivers/staging/hv/TODO
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
TODO:
- audit the network driver
- checking for carrier inside open is wrong, network device API
confusion??
- audit the scsi driver

Please send patches for this code to Greg Kroah-Hartman <gregkh@suse.de>,
Expand Down
19 changes: 7 additions & 12 deletions trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,15 @@ static int netvsc_open(struct net_device *net)
struct hv_device *device_obj = net_device_ctx->device_ctx;
int ret = 0;

if (netif_carrier_ok(net)) {
/* Open up the device */
ret = rndis_filter_open(device_obj);
if (ret != 0) {
netdev_err(net, "unable to open device (ret %d).\n",
ret);
return ret;
}

netif_start_queue(net);
} else {
netdev_err(net, "unable to open device...link is down.\n");
/* Open up the device */
ret = rndis_filter_open(device_obj);
if (ret != 0) {
netdev_err(net, "unable to open device (ret %d).\n", ret);
return ret;
}

netif_start_queue(net);

return ret;
}

Expand Down

0 comments on commit 6c31b8f

Please sign in to comment.