Workaround for fishy situation that caused checksum on outgoing packets
to be broken in certain cases. (Seemingly when 2 short packets sent back-to-back.) Buffer alignment seems to fix this ...
This commit is contained in:
parent
3bb4d191d7
commit
4ab7f34ea0
|
@ -806,10 +806,10 @@ fxp_t *fp;
|
||||||
assert(first_time);
|
assert(first_time);
|
||||||
first_time= 0;
|
first_time= 0;
|
||||||
|
|
||||||
#if 0
|
#define BUFALIGN 4096
|
||||||
assert(tot_bufsize <= buffer);
|
assert(tot_bufsize <= sizeof(buffer)-BUFALIGN);
|
||||||
#endif
|
|
||||||
buf= (phys_bytes)buffer;
|
buf= (phys_bytes)buffer;
|
||||||
|
buf += BUFALIGN - (buf % BUFALIGN);
|
||||||
}
|
}
|
||||||
|
|
||||||
fp->fxp_rx_buf= (struct rfd *)buf;
|
fp->fxp_rx_buf= (struct rfd *)buf;
|
||||||
|
|
Loading…
Reference in a new issue