Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318924
b: refs/heads/master
c: fa85a6c
h: refs/heads/master
v: v3
  • Loading branch information
Haiyang Zhang authored and David S. Miller committed Jul 25, 2012
1 parent a89ff13 commit 31d18f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 4331debc51ee1ce319f4a389484e0e8e05de2aca
refs/heads/master: fa85a6c29a493e8a574bf62a6349b38b591bf885
7 changes: 6 additions & 1 deletion trunk/drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct net_device_context {
struct work_struct work;
};


#define RING_SIZE_MIN 64
static int ring_size = 128;
module_param(ring_size, int, S_IRUGO);
MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)");
Expand Down Expand Up @@ -518,6 +518,11 @@ static void __exit netvsc_drv_exit(void)

static int __init netvsc_drv_init(void)
{
if (ring_size < RING_SIZE_MIN) {
ring_size = RING_SIZE_MIN;
pr_info("Increased ring_size to %d (min allowed)\n",
ring_size);
}
return vmbus_driver_register(&netvsc_drv);
}

Expand Down

0 comments on commit 31d18f4

Please sign in to comment.