diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:05:29 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:05:29 +0100 |
commit | 857f2528e0b014b6bd839535daaa6b53853703d9 (patch) | |
tree | c81c520a5cf17c79ea31acbf018f36acbc130489 /sys/src/9/ip/ethermedium.c | |
parent | ea993877a96cd535199d0cd437e49f8d616615d9 (diff) |
ip: always pass a single block to Medium.bwrite(), avoid concatblock() calls in Dev.bwrite()
the convention for Dev.bwrite() is that it accepts a *single* block,
and not a block chain. so we never have concatblock here.
to keep stuff consistent, we also guarantee thet Medium.bwrite()
will get a *single* block passed as well, as the callers are
few in number.
Diffstat (limited to 'sys/src/9/ip/ethermedium.c')
-rw-r--r-- | sys/src/9/ip/ethermedium.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/src/9/ip/ethermedium.c b/sys/src/9/ip/ethermedium.c index f5b4e855d..5853ceec0 100644 --- a/sys/src/9/ip/ethermedium.c +++ b/sys/src/9/ip/ethermedium.c @@ -298,8 +298,6 @@ etherbwrite(Ipifc *ifc, Block *bp, int version, uchar *ip) /* make it a single block with space for the ether header */ bp = padblock(bp, ifc->m->hsize); - if(bp->next) - bp = concatblock(bp); if(BLEN(bp) < ifc->mintu) bp = adjustblock(bp, ifc->mintu); eh = (Etherhdr*)bp->rp; |