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
This commit is contained in:
wpaul 1999-09-17 18:04:14 +00:00
parent 8c670260e1
commit 8afddec372
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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