MFC if_msk.c, rev 1.17 if_mskreg.h, rev 1.5 to RELENG_6.

Increase a maximum segment size of DMA to 4096. Previously it used
  MCLBYTES for the segment size but it used too many Tx descriptors in
  TSO case.
  While I'm here adjust maximum size of the sum of all segment lengths
  in a given DMA mapping to 65535, the maximum size, in bytes, of a IP
  packet.
This commit is contained in:
yongari 2007-07-27 01:48:58 +00:00
parent bc6d0ec32d
commit ad5e419304
2 changed files with 4 additions and 2 deletions

View File

@ -2177,9 +2177,9 @@ msk_txrx_dma_alloc(struct msk_if_softc *sc_if)
BUS_SPACE_MAXADDR, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
MCLBYTES * MSK_MAXTXSEGS, /* maxsize */
MSK_TSO_MAXSIZE, /* maxsize */
MSK_MAXTXSEGS, /* nsegments */
MCLBYTES, /* maxsegsize */
MSK_TSO_MAXSGSIZE, /* maxsegsize */
0, /* flags */
NULL, NULL, /* lockfunc, lockarg */
&sc_if->msk_cdata.msk_tx_tag);

View File

@ -2184,6 +2184,8 @@ struct msk_stat_desc {
#define MSK_JUMBO_RX_RING_CNT MSK_RX_RING_CNT
#define MSK_STAT_RING_CNT ((1 + 3) * (MSK_TX_RING_CNT + MSK_RX_RING_CNT))
#define MSK_MAXTXSEGS 32
#define MSK_TSO_MAXSGSIZE 4096
#define MSK_TSO_MAXSIZE 65535
#define MSK_MAXRXSEGS 32
/*