diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-09-17 18:04:14 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-09-17 18:04:14 +0000 |
commit | 8afddec372ea41ee4cc17dadb9bb742d08ee7142 (patch) | |
tree | df6ab5f59b6124909f2044bfe6e16d5cc70256c5 /sys | |
parent | 8c670260e182ecbe83aa24c0cab16a00f66be22b (diff) | |
download | FreeBSD-src-8afddec372ea41ee4cc17dadb9bb742d08ee7142.zip FreeBSD-src-8afddec372ea41ee4cc17dadb9bb742d08ee7142.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ti/if_ti.c | 2 | ||||
-rw-r--r-- | sys/pci/if_ti.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 0d47987..7fefb8e 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 diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c index 0d47987..7fefb8e 100644 --- a/sys/pci/if_ti.c +++ b/sys/pci/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 |