if_ti.c (9268022b74279434ed6300244e3f977e56a8ceb5) | if_ti.c (2a8c860fe3f3bcfc6ba9206f34d067d998d89c7e) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1582 unchanged lines hidden (view full) --- 1591 goto nobufs; 1592 } 1593 MGET(m[NPAYLOAD], M_NOWAIT, MT_DATA); 1594 if (m[NPAYLOAD] == NULL) { 1595 device_printf(sc->ti_dev, "cluster mbuf allocation " 1596 "failed -- packet dropped!\n"); 1597 goto nobufs; 1598 } | 1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1582 unchanged lines hidden (view full) --- 1591 goto nobufs; 1592 } 1593 MGET(m[NPAYLOAD], M_NOWAIT, MT_DATA); 1594 if (m[NPAYLOAD] == NULL) { 1595 device_printf(sc->ti_dev, "cluster mbuf allocation " 1596 "failed -- packet dropped!\n"); 1597 goto nobufs; 1598 } |
1599 MCLGET(m[NPAYLOAD], M_NOWAIT); 1600 if ((m[NPAYLOAD]->m_flags & M_EXT) == 0) { | 1599 if (!(MCLGET(m[NPAYLOAD], M_NOWAIT))) { |
1601 device_printf(sc->ti_dev, "mbuf allocation failed " 1602 "-- packet dropped!\n"); 1603 goto nobufs; 1604 } 1605 m[NPAYLOAD]->m_len = MCLBYTES; 1606 1607 for (i = 0; i < NPAYLOAD; i++){ 1608 MGET(m[i], M_NOWAIT, MT_DATA); --- 2450 unchanged lines hidden --- | 1600 device_printf(sc->ti_dev, "mbuf allocation failed " 1601 "-- packet dropped!\n"); 1602 goto nobufs; 1603 } 1604 m[NPAYLOAD]->m_len = MCLBYTES; 1605 1606 for (i = 0; i < NPAYLOAD; i++){ 1607 MGET(m[i], M_NOWAIT, MT_DATA); --- 2450 unchanged lines hidden --- |