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:
parent
8c670260e1
commit
8afddec372
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user