mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1ea586719f
commit
d1e8f983ef
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue