diff options
author | Ed Cashin <ecashin@coraid.com> | 2012-10-05 04:16:27 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 22:05:25 +0400 |
commit | 3f0f0133747368fe0fcf3908f788b53591bff4e0 (patch) | |
tree | 05e8f202fff8f7b848fee76a297c8a7ebbd101f6 /drivers/block/aoe/aoe.h | |
parent | eb086ec59667df5b07d58176e21a5f523ead1d66 (diff) | |
download | linux-3f0f0133747368fe0fcf3908f788b53591bff4e0.tar.xz |
aoe: use packets that work with the smallest-MTU local interface
Users with several network interfaces dedicated to AoE generally do not
configure them to support different-sized AoE data payloads on purpose.
For a given AoE target, there will be a set of local network interfaces
that can reach it. Using only the payload that will fit in the
smallest-sized MTU of all those local interfaces greatly simplifies the
driver, especially in failure scenarios.
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>
Diffstat (limited to 'drivers/block/aoe/aoe.h')
-rw-r--r-- | drivers/block/aoe/aoe.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index d0087de1780e..ffded64dcbeb 100644 --- a/drivers/block/aoe/aoe.h +++ b/drivers/block/aoe/aoe.h @@ -125,9 +125,8 @@ struct frame { struct aoeif { struct net_device *nd; - unsigned char lost; - unsigned char lostjumbo; - ushort maxbcnt; + ulong lost; + int bcnt; }; struct aoetgt { @@ -144,6 +143,7 @@ struct aoetgt { u16 useme; ulong falloc; ulong lastwadj; /* last window adjustment */ + int minbcnt; int wpkts, rpkts; }; @@ -172,6 +172,7 @@ struct aoedev { struct bio *nxbio; struct request *rq; } ip; + ulong maxbcnt; struct aoetgt *targets[NTARGETS]; struct aoetgt **tgt; /* target in use when working */ struct aoetgt *htgt; /* target needing rexmit assistance */ |