This is the mail archive of the
ecos-bugs@sources.redhat.com
mailing list for the eCos project.
[Bug 20944] New: mbuf should be aligned to 128 bytes boundry.
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at sources dot redhat dot com
- Date: Thu, 24 Apr 2003 17:54:25 +0100 (BST)
- Subject: [Bug 20944] New: mbuf should be aligned to 128 bytes boundry.
http://bugs.ecos.sourceware.org/show_bug.cgi?id=20944
Summary: mbuf should be aligned to 128 bytes boundry.
Product: eCos
Version: 1.3.1
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: low
Component: TCPIP
AssignedTo: gary at mlbassoc dot com
ReportedBy: anonymous at sourceware dot cygnus dot com
In eCos TCP/IP package v1_0b1:
mbuf should be aligned to 128 bytes boundry.
but the pointer returned from cyg_net_mbuf_alloc(...)
may not aligned to 128 bytes boundry.
Fix:
align the base address of mbuf pool to 128 bytes boundry.
static unsigned char net_mbufs_area[NET_MBUFS_SIZE + MSIZE];
cyg_kmem_init()
{
...
unsigned char *p = (net_mbufs_area + MSIZE - 1) & ~(MSIZE - 1);
...
cyg_mempool_fix_create(p, NET_MBUFS_SIZE, MSIZE, ...);
...
}
---------------------------------------------------------------------------
Originator:
Yong Wu
Organization:
none
Audit-Trail:
From: Hugo Tyson <hmt at cygnus dot co dot uk>
To: bugs at cygnus dot com
Cc: Subject: Re: ecos/20944: Bug report form
Date: Mon, 7 Aug 2000 11:58:11 +0100
I already fixed this - it actually didn't matter except for certain special
circumstances. The ChangeLog entry follows:
2000-06-23 Hugo Tyson <hmt at cygnus dot co dot uk>
* src/ecos/support.c (cyg_net_mbuf_alloc, cyg_kmem_init): Align
the mbuf pool to MSIZE [128] bytes. That way dtom() works, nasty
though it is. That's needed for ip reassembly in ip_input.c, when
dealing with large icmp-layer packets eg. ping -s 2000 ...
HTH,
- Huge
Unformatted:
Originator:
page: sourceware.cygnus.com/ecos/problemreport.html
Send_PR_form: Sent_from_sourceware.cygnus.com
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.