diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-09-28 19:17:56 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-09-28 19:17:56 +0000 |
commit | 6b38e52e4b38370d3097a32550ba9cace6782888 (patch) | |
tree | 9a927e0317e85b98c907924febc3853aaf0835dd /sys/src/9/ip/netdevmedium.c | |
parent | 23e378a960f6027f8daba93f34ebeb1ae3d00517 (diff) |
devip: get rid of Ipifc.mintu
All the mediums we have implemented know their minimum
transmit unit. The minimum transfer unit is not adjustable
so there is no point in caching it in the ip interface.
Diffstat (limited to 'sys/src/9/ip/netdevmedium.c')
-rw-r--r-- | sys/src/9/ip/netdevmedium.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/src/9/ip/netdevmedium.c b/sys/src/9/ip/netdevmedium.c index f60d43b3a..9ad95b40e 100644 --- a/sys/src/9/ip/netdevmedium.c +++ b/sys/src/9/ip/netdevmedium.c @@ -93,9 +93,6 @@ netdevbwrite(Ipifc *ifc, Block *bp, int, uchar*, Routehint*) { Netdevrock *er = ifc->arg; - if(BLEN(bp) < ifc->mintu) - bp = adjustblock(bp, ifc->mintu); - devtab[er->mchan->type]->bwrite(er->mchan, bp, 0); ifc->out++; } |