summaryrefslogtreecommitdiffstats
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2014-03-31 01:54:59 +0000
committeryongari <yongari@FreeBSD.org>2014-03-31 01:54:59 +0000
commite1b5ce307a401cee03e8762e864442953d82c590 (patch)
tree74de747b83372a8f57da81c4b04485edfa799ecc /sys/dev/fxp
parenteebc91c3f07da2be029d067225ea5126070dce16 (diff)
downloadFreeBSD-src-e1b5ce307a401cee03e8762e864442953d82c590.zip
FreeBSD-src-e1b5ce307a401cee03e8762e864442953d82c590.tar.gz
Increase the number of TX DMA segments from 32 to 35. It turned
out 32 is not enough to support a full sized TSO packet. While I'm here fix a long standing bug introduced in r169632 in bce(4) where it didn't include L2 header length of TSO packet in the maximum DMA segment size calculation. In collaboration with: rmacklem MFC after: 2 weeks
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxpreg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxpreg.h b/sys/dev/fxp/if_fxpreg.h
index cc764b5..7fd60af 100644
--- a/sys/dev/fxp/if_fxpreg.h
+++ b/sys/dev/fxp/if_fxpreg.h
@@ -250,7 +250,7 @@ struct fxp_cb_ucode {
/*
* Number of DMA segments in a TxCB.
*/
-#define FXP_NTXSEG 32
+#define FXP_NTXSEG 35
struct fxp_tbd {
uint32_t tb_addr;
OpenPOWER on IntegriCloud