Intel® IXP400 Software

Buffer Management

3.3IXP_BUF Structure

As shown in Figure 5, IXP_BUF is comprised of the following three main structures, and each structure is comprised of eight entries four bytes long.

1.The first structure consists of an eight word fields some of which are between the OS driver / API users and the access-layer components.

2.The second structure consists of internal fields used by the pool manager, which is provided by the OSAL component.

3.The third structure is the NPE Shared structure that is composed of common header fields and NPE service specific fields. Depending upon the access-component usage, some of the service specific fields such as VLAN tags may be available for the user through use of macros.

Figure 5. IXP_BUF Structure

Structure 1

Structure 2

Structure 3

IX_MBUF: OS Dependent Buffer format

ix_ctrl: Pool Management Fields

ix_ne: NPE Shared structure

IXP_BUF structure

B-3826

3.3.1IXP_BUF Structure and Macros

Users are expected to use the following IXP_BUF macros provided to access IXP_BUF subfields. The Figure 6 shows macros defined by the OSAL layer component to be used to access the IXP_BUF fields.

April 2005

IXP400 Software Version 2.0

Programmer’s Guide

38

Document Number: 252539, Revision: 007

 

Page 38
Image 38
Intel IXP400 manual Ixpbuf Structure and Macros