svn commit: r217222 - head/sys/mips/cavium
Juli Mallett
jmallett at FreeBSD.org
Mon Jan 10 06:46:19 UTC 2011
Author: jmallett
Date: Mon Jan 10 06:46:18 2011
New Revision: 217222
URL: http://svn.freebsd.org/changeset/base/217222
Log:
o) Free mbufs in error cases.
o) Clear/acknowledge receive interrupt at end of thread. This gives the
management interfaces performance on the order of 100Mbps rather than
the previous level of 10Mbps on my MR-730.
Modified:
head/sys/mips/cavium/if_octm.c
Modified: head/sys/mips/cavium/if_octm.c
==============================================================================
--- head/sys/mips/cavium/if_octm.c Mon Jan 10 06:12:01 2011 (r217221)
+++ head/sys/mips/cavium/if_octm.c Mon Jan 10 06:46:18 2011 (r217222)
@@ -511,9 +511,15 @@ octm_rx_intr(void *arg)
continue;
}
+ m_freem(m);
+
if (len == 0)
break;
sc->sc_ifp->if_ierrors++;
}
+
+ /* Acknowledge interrupts. */
+ cvmx_write_csr(CVMX_MIXX_ISR(sc->sc_port), mixx_isr.u64);
+ cvmx_read_csr(CVMX_MIXX_ISR(sc->sc_port));
}
More information about the svn-src-all
mailing list