enetc: Disable HW IP packet alignment
The NIC can IP align received packets. It was observed that it caused some rare stalls, that required full board reset. Disable this feature for now. It doesn't provide any significant performance improvement anyway. Obtained from: Semihalf Sponsored by: Alstom Group
This commit is contained in:
parent
8d8589b385
commit
f485d733e8
@ -933,7 +933,7 @@ enetc_init(if_ctx_t ctx)
|
||||
ENETC_PORT_WR4(sc, ENETC_PSIPVMR,
|
||||
ENETC_PSIPVMR_SET_VUTA(1));
|
||||
|
||||
sc->rbmr = ENETC_RBMR_EN | ENETC_RBMR_AL;
|
||||
sc->rbmr = ENETC_RBMR_EN;
|
||||
|
||||
if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING)
|
||||
sc->rbmr |= ENETC_RBMR_VTE;
|
||||
@ -1255,8 +1255,7 @@ enetc_isc_rxd_pkt_get(void *data, if_rxd_info_t ri)
|
||||
desc = &queue->ring[cidx];
|
||||
}
|
||||
ri->iri_nfrags = i + 1;
|
||||
ri->iri_len = pkt_size + ENETC_RX_IP_ALIGN;
|
||||
ri->iri_pad = ENETC_RX_IP_ALIGN;
|
||||
ri->iri_len = pkt_size;
|
||||
|
||||
MPASS(desc->r.lstatus & ENETC_RXBD_LSTATUS_F);
|
||||
if (status & ENETC_RXBD_LSTATUS(ENETC_RXBD_ERR_MASK))
|
||||
|
Loading…
x
Reference in New Issue
Block a user