From d1e8f983efda310efca20ac03ccf649215054fb2 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Fri, 17 Sep 1999 18:04:14 +0000 Subject: Remember to account for ETHER_ALIGN when setting the maxmimum packet length for mini receive ring. The max length was MHLEN, however the mbufs are actually shortened to MHLEN - ETHER_ALIGN to force payload alignment. PR: 13793 --- sys/dev/ti/if_ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/ti') diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 0d47987a23f3..7fefb8e3f0f4 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -1428,7 +1428,7 @@ static int ti_gibinit(sc) rcb = &sc->ti_rdata->ti_info.ti_mini_rx_rcb; TI_HOSTADDR(rcb->ti_hostaddr) = vtophys(&sc->ti_rdata->ti_rx_mini_ring); - rcb->ti_max_len = MHLEN; + rcb->ti_max_len = MHLEN - ETHER_ALIGN; if (sc->ti_hwrev == TI_HWREV_TIGON) rcb->ti_flags = TI_RCB_FLAG_RING_DISABLED; else -- cgit v1.3