Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2012 05:50:56 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241721 - head/sys/arm/ti/cpsw
Message-ID:  <201210190550.q9J5ouwI007628@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kientzle
Date: Fri Oct 19 05:50:56 2012
New Revision: 241721
URL: http://svn.freebsd.org/changeset/base/241721

Log:
  Replace deprecated M_DONTWAIT with M_NOWAIT.

Modified:
  head/sys/arm/ti/cpsw/if_cpsw.c

Modified: head/sys/arm/ti/cpsw/if_cpsw.c
==============================================================================
--- head/sys/arm/ti/cpsw/if_cpsw.c	Fri Oct 19 05:43:38 2012	(r241720)
+++ head/sys/arm/ti/cpsw/if_cpsw.c	Fri Oct 19 05:50:56 2012	(r241721)
@@ -522,7 +522,7 @@ cpsw_new_rxbuf(struct cpsw_softc *sc, ui
 	int error;
 	int nsegs;
 
-	sc->rx_mbuf[i] = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
+	sc->rx_mbuf[i] = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
 	if (sc->rx_mbuf[i] == NULL)
 		return (ENOBUFS);
 
@@ -628,7 +628,7 @@ cpsw_start_locked(struct ifnet *ifp)
 		if (m0 == NULL)
 			break;
 
-		mtmp = m_defrag(m0, M_DONTWAIT);
+		mtmp = m_defrag(m0, M_NOWAIT);
 		if (mtmp)
 			m0 = mtmp;
 



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