Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84707
b: refs/heads/master
c: 7df620d
h: refs/heads/master
i:
  84705: 6f195b3
  84703: a4cee3c
v: v3
  • Loading branch information
Ed L. Cashin authored and Linus Torvalds committed Feb 8, 2008
1 parent 7ab63f1 commit 56c9c1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 6b9699bbd24e82d2ec3bb5a43100099a936ded04
refs/heads/master: 7df620d852642d424afc9777fe57880e02c92832
10 changes: 7 additions & 3 deletions trunk/drivers/block/aoe/aoecmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ static int aoe_deadsecs = 60 * 3;
module_param(aoe_deadsecs, int, 0644);
MODULE_PARM_DESC(aoe_deadsecs, "After aoe_deadsecs seconds, give up and fail dev.");

static int aoe_maxout = 16;
module_param(aoe_maxout, int, 0644);
MODULE_PARM_DESC(aoe_maxout,
"Only aoe_maxout outstanding packets for every MAC on eX.Y.");

static struct sk_buff *
new_skb(ulong len)
{
Expand Down Expand Up @@ -984,7 +989,6 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
struct aoeif *ifp;
ulong flags, sysminor, aoemajor;
struct sk_buff *sl;
enum { MAXFRAMES = 16 };
u16 n;

h = (struct aoe_hdr *) skb_mac_header(skb);
Expand All @@ -1009,8 +1013,8 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
}

n = be16_to_cpu(ch->bufcnt);
if (n > MAXFRAMES) /* keep it reasonable */
n = MAXFRAMES;
if (n > aoe_maxout) /* keep it reasonable */
n = aoe_maxout;

d = aoedev_by_sysminor_m(sysminor);
if (d == NULL) {
Expand Down

0 comments on commit 56c9c1f

Please sign in to comment.