Date: Thu, 23 Feb 2012 05:14:12 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r232021 - head/sys/dev/sf Message-ID: <201202230514.q1N5ECmK085022@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Thu Feb 23 05:14:11 2012 New Revision: 232021 URL: http://svn.freebsd.org/changeset/base/232021 Log: If there are not enough RX buffers, release partially allocated RX buffers. Modified: head/sys/dev/sf/if_sf.c Modified: head/sys/dev/sf/if_sf.c ============================================================================== --- head/sys/dev/sf/if_sf.c Thu Feb 23 05:13:46 2012 (r232020) +++ head/sys/dev/sf/if_sf.c Thu Feb 23 05:14:11 2012 (r232021) @@ -2010,6 +2010,7 @@ sf_init_locked(struct sf_softc *sc) if (sf_init_rx_ring(sc) == ENOBUFS) { device_printf(sc->sf_dev, "initialization failed: no memory for rx buffers\n"); + sf_stop(sc); return; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202230514.q1N5ECmK085022>