You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
aoe: update cap on outstanding commands based on config query response
The ATA over Ethernet config query response contains a "buffer count" field reflecting the AoE target's capacity to buffer incoming AoE commands. By taking the current value of this field into accound, we increase performance throughput or avoid network congestion, when the value has increased or decreased, respectively. Signed-off-by: Ed Cashin <ecashin@coraid.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
4e78dd144b
commit
1b8a1636ce
@@ -1373,7 +1373,11 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
|
||||
spin_lock_irqsave(&d->lock, flags);
|
||||
|
||||
t = gettgt(d, h->src);
|
||||
if (!t) {
|
||||
if (t) {
|
||||
t->nframes = n;
|
||||
if (n < t->maxout)
|
||||
t->maxout = n;
|
||||
} else {
|
||||
t = addtgt(d, h->src, n);
|
||||
if (!t)
|
||||
goto bail;
|
||||
|
||||
Reference in New Issue
Block a user