mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 01:03:42 +00:00
Fix buffer discard index.
While I'm here dicard all buffers if errored frame is part of multi-segmented frames. Pointed out by: sephe Reviewd by: sephe MFC after: 3 days
This commit is contained in:
parent
62187b4142
commit
43742818e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180869
|
@ -2346,7 +2346,10 @@ jme_rxeof(struct jme_softc *sc)
|
|||
if (jme_newbuf(sc, rxd) != 0) {
|
||||
ifp->if_iqdrops++;
|
||||
/* Reuse buffer. */
|
||||
jme_discard_rxbuf(sc, sc->jme_cdata.jme_rx_cons);
|
||||
for (; count < nsegs; count++) {
|
||||
jme_discard_rxbuf(sc, cons);
|
||||
JME_DESC_INC(cons, JME_RX_RING_CNT);
|
||||
}
|
||||
if (sc->jme_cdata.jme_rxhead != NULL) {
|
||||
m_freem(sc->jme_cdata.jme_rxhead);
|
||||
JME_RXCHAIN_RESET(sc);
|
||||
|
|
Loading…
Reference in a new issue