if_em.c (108229) | if_em.c (109623) |
---|---|
1/************************************************************************** 2 3Copyright (c) 2001-2002, Intel Corporation 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 17 unchanged lines hidden (view full) --- 26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30POSSIBILITY OF SUCH DAMAGE. 31 32***************************************************************************/ 33 | 1/************************************************************************** 2 3Copyright (c) 2001-2002, Intel Corporation 4All rights reserved. 5 6Redistribution and use in source and binary forms, with or without 7modification, are permitted provided that the following conditions are met: 8 --- 17 unchanged lines hidden (view full) --- 26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30POSSIBILITY OF SUCH DAMAGE. 31 32***************************************************************************/ 33 |
34/*$FreeBSD: head/sys/dev/em/if_em.c 108229 2002-12-23 19:11:23Z pdeuskar $*/ | 34/*$FreeBSD: head/sys/dev/em/if_em.c 109623 2003-01-21 08:56:16Z alfred $*/ |
35 36#include <dev/em/if_em.h> 37 38/********************************************************************* 39 * Set this to one to display debug statistics 40 *********************************************************************/ 41int em_display_debug_stats = 0; 42 --- 1754 unchanged lines hidden (view full) --- 1797 struct mbuf *nmp) 1798{ 1799 register struct mbuf *mp = nmp; 1800 struct ifnet *ifp; 1801 1802 ifp = &adapter->interface_data.ac_if; 1803 1804 if (mp == NULL) { | 35 36#include <dev/em/if_em.h> 37 38/********************************************************************* 39 * Set this to one to display debug statistics 40 *********************************************************************/ 41int em_display_debug_stats = 0; 42 --- 1754 unchanged lines hidden (view full) --- 1797 struct mbuf *nmp) 1798{ 1799 register struct mbuf *mp = nmp; 1800 struct ifnet *ifp; 1801 1802 ifp = &adapter->interface_data.ac_if; 1803 1804 if (mp == NULL) { |
1805 MGETHDR(mp, M_DONTWAIT, MT_DATA); | 1805 MGETHDR(mp, M_NOWAIT, MT_DATA); |
1806 if (mp == NULL) { 1807 adapter->mbuf_alloc_failed++; 1808 return(ENOBUFS); 1809 } | 1806 if (mp == NULL) { 1807 adapter->mbuf_alloc_failed++; 1808 return(ENOBUFS); 1809 } |
1810 MCLGET(mp, M_DONTWAIT); | 1810 MCLGET(mp, M_NOWAIT); |
1811 if ((mp->m_flags & M_EXT) == 0) { 1812 m_freem(mp); 1813 adapter->mbuf_cluster_failed++; 1814 return(ENOBUFS); 1815 } 1816 mp->m_len = mp->m_pkthdr.len = MCLBYTES; 1817 } else { 1818 mp->m_len = mp->m_pkthdr.len = MCLBYTES; --- 638 unchanged lines hidden --- | 1811 if ((mp->m_flags & M_EXT) == 0) { 1812 m_freem(mp); 1813 adapter->mbuf_cluster_failed++; 1814 return(ENOBUFS); 1815 } 1816 mp->m_len = mp->m_pkthdr.len = MCLBYTES; 1817 } else { 1818 mp->m_len = mp->m_pkthdr.len = MCLBYTES; --- 638 unchanged lines hidden --- |