Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jan 2011 06:46:18 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217222 - head/sys/mips/cavium
Message-ID:  <201101100646.p0A6kIEj069999@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101100646.p0A6kIEj069999>