Ignore:
Timestamp:
May 25, 2006, 5:36:31 PM (14 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ebbe2af2
Parents:
4bee7d9c
Message:

Provide customisable mbuf allocation.
Patch from Steven Johnson <sjohnson@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/rtems/rtems_glue.c

    r4bee7d9c rbe31de7  
    150150         * Set up mbuf cluster data strutures
    151151         */
    152         p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
     152        p = rtems_bsdnet_malloc_mbuf ((nmbclusters*MCLBYTES)+MCLBYTES-1, MBUF_MALLOC_NMBCLUSTERS);
    153153        if (p == NULL) {
    154154                printf ("Can't get network cluster memory.\n");
     
    164164        }
    165165        mbstat.m_clusters = nmbclusters;
    166         mclrefcnt = malloc (nmbclusters);
     166        mclrefcnt = rtems_bsdnet_malloc_mbuf (nmbclusters, MBUF_MALLOC_MCLREFCNT);
    167167        if (mclrefcnt == NULL) {
    168168                printf ("Can't get mbuf cluster reference counts memory.\n");
     
    175175         */
    176176
    177         p = malloc(nmbuf * MSIZE + MSIZE - 1);
     177        p = rtems_bsdnet_malloc_mbuf(nmbuf * MSIZE + MSIZE - 1,MBUF_MALLOC_MBUF);
    178178        p = (char *)(((unsigned int)p + MSIZE - 1) & ~(MSIZE - 1));
    179179        if (p == NULL) {
Note: See TracChangeset for help on using the changeset viewer.