Programmer’s Guide
Intel IXP400 Software
IXP400 Software Version
Intel IXP400 Software
Contents
1.1
100
118
152
Contents Access-Layer Components
225
17.9
Operating System
Adsl Driver
Figures
102
Tables
AQM
300
Date Revision Description
Revision History
Versions Supported by this Document
Introduction1
Hardware Supported by this Release
Intended Audience
How to Use this Document
About the Processors
Chapters Description
Document Title Document #
Related Documents
Acronyms
Document Title Document #
Acronym Description
CPU
HSS
MSB
SIP
High-Level Overview
Software Architecture Overview
Software Architecture Overview
Deliverable Model
Access Library Source Code Documentation
Operating System Support
Development Tools
Ixposal Include Src Ixp400xscalesw
Release Directory Structure
\---include +---npeMh
Threading and Locking Policy
Polled and Interrupt Operation
Statistics and MIBs
Global Dependencies
Global Dependency Chart
This page is intentionally left blank
Buffer Management
What’s New
Overview
Intel IXP400 Software Buffer Flow
Buffer Management
Raw Buffers
Ixpbuf User Interface
Ixpbuf Structure and Macros
Ixpbuf Structure
Osal Ixpbuf structure and macros
API User Interface to Ixpbuf
Ixmbuf OS-Dependent Buffer Format
Pool Management Fields
Ixne IXP400 NPE Shared Structure
Ixpbuf ixctrl Structure
Ixpbuf NPE Shared Structure
Mapping of Ixmbuf to Shared Structure
Internal Ixmbuf Field Format Sheet 1
Ixmbuf Structure
Ixnext Ixosalmbufnextbufferinpktptr
Ixreserved
Field / Macro Purpose Used by Access-Layer?
Internal Ixmbuf Field Format Sheet 2
Ixmbuf Field Details Sheet 1
Mapping to OS Native Buffer Types
VxWorks* Mblk Buffer
Ixmbuf Field Details Sheet 2
Ixmbuf to Mblk Mapping
Linux* skbuff Buffer
Buffer Translation Functions
Following fields will get updated in the skbuffer
Tx Path
Caching Strategy
Rx Path
Caching Strategy Summary
Buffer Management Tx Cache Flushing Example
Intel IXP400 Software
This page is intentionally left blank
IxAtmdAcc Component Features
Access-Layer Components ATM Driver Access IxAtmdAcc API
Access-Layer Components ATM Driver Access IxAtmdAcc API
Configuration Services
Utopia Port-Configuration Service
ATM Traffic-Shaping Services
VC-Configuration Services
Transmission Services
Buffer Transmission for a Scheduled Port
Scheduled Transmission
Schedule Table Description
Transmit-Done Processing
Transmission Triggers Tx-Low Notification
Transmit Done Based on a Threshold Level
Tx Done Recycling Using a Threshold Level
Transmit Disconnect
Tx Done Recycling Using a Polling Mechanism
Tx Disconnect
Receive Services
Receive Triggers Rx-Free-Low Notification
Receive Processing
Receive Based on a Threshold Level
Rx Using a Threshold Level
Receive Disconnect
RX Using a Polling Mechanism
Buffer Contents
Buffer Management
Buffer Allocation
Ixpbuf Fields of Available Buffers for Reception
Ixpbuf Fields Required for Transmission
Ixpbuf Fields Modified During Reception Sheet 1
Field Description
API-Usage Errors
Error Handling
Buffer-Size Constraints
Buffer-Chaining Constraints
Real-Time Errors
Real-Time Errors
Cause Consequences and Side Effects Corrective Action
Access-Layer Components ATM Manager IxAtmm API
IxAtmm Component Features
IxAtmm Overview
Utopia Level-2 Port Initialization
Access-Layer Components ATM Manager IxAtmm API
ATM-Port Management Service Model
Services Provided by Ixatmm
Tx/Rx Control Configuration
Configuration of Traffic Control Mechanism
Dependencies
Error Handling
Management Interfaces
Memory Requirements
Performance
IxAtmSch Component Features
Access-Layer Components ATM Transmit Scheduler IxAtmSch
Access-Layer Components ATM Transmit Scheduler IxAtmSch API
Supported Traffic Types
Traffic Type Supported Num VCs
Connection Admission Control CAC Function
Schedule Table
Scheduling and Traffic Shaping
Schedule Service Model
Minimum Cells Value minCellsToSchedule
Maximum Cells Value maxCells
Timing and Idle Cells
Data Memory
Code Size
IxAtmSch Data Memory Usage
Per VC Data Per Port Data Total
Latency
Access-Layer Components Security IxCryptoAcc API
Access-Layer Components Security IxCryptoAcc API
IxCryptoAcc API Architecture
IxCryptoAcc Interfaces
Basic API Flow
Basic IxCryptoAcc API Flow
Context Registration and the Cryptographic Context Database
Intel IXP400 Software
IxCryptoAcc API Call Process Flow for CCD Updates
Memory Requirements
Buffer and Queue Management
IxCryptoAcc Data Memory Usage Sheet 1
Structure Size in Bytes Total Size in Bytes
IxCryptoAcc Data Memory Usage Sheet 2
Dependencies
IxCryptoAccHashKeyGenerate
Other API Functionality
Endianness
IPSec Services
Import and Export of Cryptographic Technology
IPSec Background and Implementation
IxCryptoAcc, NPE and IPSec Stack Scope
Relationship Between IPSec Protocol and Algorithms
IPSec Packet Formats
Reference ESP Dataflow
Authentication Header
ESP Data Flow
Reference AH Dataflow
IPSec API Call Flow
Hardware Acceleration for IPSec Services
IPSec API Call Flow
Hmac with Key Size Greater Than 64 Bytes
Special API Use Cases
CCM Operation Flow
AES CBC Encryption For MIC
WEP Services
IPSec Assumptions, Dependencies, and Limitations
WEP Background and Implementation
WEP Frame with Request Parameters
Hardware Acceleration for WEP Services
IxCryptoAccNpeWepPerform
WEP API Call Flow
IxCryptoAccXscaleWepPerform
NPE Microcode Images
WEP Perform API Call Flow
Combined Mode Operations
Authentication
SSL and TLS Protocol Usage Models
Encryption/Decryption
Encryption Algorithms
Supported Encryption and Authentication Algorithms
Supported Encryption Algorithms
Cipher Key Sizes Parity Bit Actual Key Size
Cipher Modes
Counter Mode CTR
Electronic Code Book ECB
Cipher Block Chaining CBC
Authentication Algorithms
Supported Authentication Algorithms
Authentication Algorithm Data Block Size Bits Key Size Bits
114 Document Number 252539, Revision
Access-Layer Components DMA Access Driver IxDmaAcc API
Features
Assumptions
Access-Layer Components DMA Access Driver IxDmaAcc API
DMA Access-Layer API
IxDmaAcc Component Overview
IxDmaAccDescriptorManager
Parameters Description
Source Address
Transfer Mode
Destination Address
Transfer Width
Transfer Length
Addressing Modes
Transfer Mode
Supported Modes
Increment
122 Document Number 252539, Revision
Control Flow
Data Flow
IxDmaAcc Control Flow
DMA Initialization
IxDMAcc Initialization
DMA Configuration and Data Transfer
DMA Transfer Operation
Restrictions of the DMA Transfer
Little Endian
IxEthAcc Overview
Access-Layer Components Ethernet Access IxEthAcc API
Ethernet Access Layers Architectural Overview
Access-Layer Components Ethernet Access IxEthAcc API
Role of the Ethernet NPE Microcode
4 MAC/PHY Configuration
Queue Manager
Learning/Filtering Database
Ethernet Access Layers Component Features
Data Plane
Ethernet Access Layers Block Diagram
Port Initialization
Ethernet Frame Transmission
Transmission Flow
Transmit Buffer Management and Priority
TxEnetDone
Ethernet Transmit Frame Data Buffer Flow
Using Chained IXOSALMBUFs for Transmission / Buffer Sizing
Ethernet Frame Reception
Tx Fifo Priority
Ethernet Receive Frame API Overview
Receive Flow
Receive Buffer Management and Priority
Buffer Sizing
Supplying Buffers
Codelet or client application
Programmer’s Guide
Rx Fifo Priority QoS Mode
Freeing Buffers
Recycling Buffers
No Receive Polling
Additional Receive Path Information
Control Path
Data-Plane Endianness
Maximum Ethernet Frame Size
IxEthAcc and Secondary Components
Ethernet MAC Control
MAC Duplex Settings
MII I/O
Frame Check Sequence
Non-Promiscuous Mode
Promiscuous Mode
MAC Filtering
1.6 802.3x Flow Control
Shared Data Structures
Initialization
NPE Loopback
Emergency Security Port Shutdown
Ixpneflags Field Format
Ixosalmbuf Structure Format
Queue Field Description Eth
150 Document Number 252539, Revision
Ixosalmbuf Port ID Field Format
Ixosalmbuf Port ID Field Values
Management Information
Ixpneflags.linkprot Field Values
Field Bit Values
Object Increment Criteria
Managed Objects for Ethernet Receive
Managed Objects for Ethernet Transmit
IxEthDB Functional Behavior
Access-Layer Components Ethernet Database IxEthDB API
Access-Layer Components Ethernet Database IxEthDB API
MAC Address Learning and Filtering
Learning and Filtering
Node
Learning/Filtering General Characteristics
Other MAC Learning/Filtering Usage Models
Port Definitions
Port Dependency Map
Provisioning Static and Dynamic Entries
Aging
Database Maintenance
Frame Size Filtering
Record Management
Source MAC Address Firewall
Filtering Example Based Upon Maximum Frame Size
MAC Address Block/Admission
Invalid MAC Address Filtering
10.3.4 802.1Q Vlan
Background Vlan Data in Ethernet Frames
Untagged MAC Frame Format
Vlan Tagged MAC Frame Format
Database Records Associated With Vlan IDs
Acceptable Frame Type Filtering
Vlan Tag Format
Port-Based Vlan Membership Filtering
Ingress Tagging and Tag Removal
Port and VLAN-Based Egress Tagging and Tag Removal
Special Conditions
Egress Vlan Tagging/Untagging Behavior Matrix
Tag Mode Frame Status Action
10.3.5 802.1Q User Priority / QoS Support
Port ID Extraction
Priority Aware Transmission
QoS on Receive for 802.1Q Tagged Frames
Receive Priority Queuing
QoS on Receive for Untagged Frames
Priority to Traffic Class Mapping
10.3.6 802.3 / 802.11 Frame Conversion
Default Priority to Traffic Class Mapping
Background 802.3 and 802.11 Frame Formats
IEEE802.11 Frame Format
AP-STA and AP-AP Modes
IEEE802.11 Frame Control FC Field Format
Receive Path
How the 802.3 / 802.11 Frame Conversion Feature Works
Field AP to STA mode AP to AP mode
To 802.11 Header Conversion Rules
Transmit Path
11 to 802.3 Header Conversion Rules
10.3.6.3 802.3 / 802.11 API Details
Input 802.11 Frame Values Output 802.3 Frame Field Values
Frame Type
Spanning Tree Protocol Port Settings
IxEthDB API
Initialization
Additional Database Features
Feature Set
IxEthDB Feature Set
User-Defined Field
Database Clear
Dependencies on IxEthAcc Configuration
Promiscuous-Mode Requirement
FCS Appending
180 Document Number 252539, Revision
Supported PHYs
Access-Layer Components Ethernet PHY IxEthMii API
PHYs Supported by IxEthMii
Access-Layer Components Ethernet PHY IxEthMii API
Hardware Feature Control
Access-Layer Components Feature Control IxFeatureCtrl API
Access-Layer Components Feature Control IxFeatureCtrl API
Using the Product ID-Related Functions
Product ID Values
Bits Description
Feature Control Register Values Sheet 1
Using the Feature Control Register Functions
Software Configuration
Feature Control Register Values Sheet 2
Component Check by Other APIs
Document Number 252539, Revision 187
188 Document Number 252539, Revision
Access-Layer Components HSS-Access IxHssAcc API
Access-Layer Components HSS-Access IxHssAcc API Features
IxHssAcc API Overview
IxHssAcc Interfaces
Access-Layer Components HSS-Access IxHssAcc API
Intel X S cale C ore
HSS and Hdlc Theory and Coprocessor Operation
HSS Output Clock Jitter and Error Characterization
HSS Tx Clock Output frequencies and PPM Error
HSS Tx Freq Pj Max ns Cj Max ns Aj Max ns
HSS Frame Output Characterization
Jitter Definitions
Jitter Type Jitter Definition
Actual Frame Length µs
High-Level API Call Flow
IxHssAcc Component Dependencies
Key Assumptions
IxHssAccPortInit
HSS Port Initialization Details
198 Document Number 252539, Revision
Channelized Connect and Enable
HSS Channelized Operation
IxHssAccChanConnect
200 Document Number 252539, Revision
IxPerfProfAcc Dependencies
Interrupt Handling
Threading
Using the API
Event and Clock Counting
API Usage for Intel XScale Core PMU
254 Document Number 252539, Revision
Display Performance Counters
Time-Based Sampling
Display Clock Counter
Iii. Print out the first five elements
Event-Based Sampling
258 Document Number 252539, Revision
C0112788 No lower symbol found. Module kernel
Using Intel XScale Core PMU to Determine Cache Efficiency
Internal Bus PMU
IxPerfProfAccBusPmuStart
Perform the same calculation for the rest of the PECs
Xcycle Idlecycle Counter
Display Xcycle Measurement
Access-Layer Components Queue Manager IxQMgr API
Access-Layer Components Queue Manager IxQMgr API
Features and Hardware Interface
Document Number 252539, Revision 267
AQM Configuration Attributes
Configuration Values
Dispatcher
Attribute Description Values
Dispatcher Modes
270 Document Number 252539, Revision
AQM
Dispatcher in Context of a Polling Mechanism
Livelock Prevention
Document Number 252539, Revision 273
274 Document Number 252539, Revision
IxSspAcc API Details
Access-Layer Components Synchronous Serial Port IxSspAcc
IxSspAcc Dependencies
Interrupt Mode
IxSspAcc API Usage Models
Initialization and General Data Model
278 Document Number 252539, Revision
Interrupt Scenario
Polling Mode
Init Transmit Receive
282 Document Number 252539, Revision
Access-Layer Components Time Sync IxTimeSyncAcc API
Access-Layer Components Time Sync IxTimeSyncAcc API
Ieee 1588 PTP Protocol Overview
Synchronization Sequence
Overview
Ieee 1588 Hardware Assist Block
Detailed Information
Block Diagram of Intel IXP46X Network Processor
IPv6 and VLAN-Tagged Ethernet Frames
Hardware Feature Options Default State
IxTimeSyncAcc
IxTimeSyncAcc API Details
Ieee 1588 PTP Client Application
Additional Hardware Information
Document Number 252539, Revision 289
Interrupt Mode Operations
IxTimeSyncAcc API Usage Scenarios
Polling for Transmit and Receive Timestamps
Interrupt Servicing of Target Time Reached Condition
Polled Mode Operations
Polling for Auxiliary Snapshot Values
Interface Description
Access-Layer Components UART-Access IxUARTAcc API
Fifo Versus Polled Mode
Access-Layer Components UART-Access IxUARTAcc API
Uart / OS Dependencies
Uart Services Models
296 Document Number 252539, Revision
USB Controller Background
Access-Layer Components USB Access ixUSB API
IN, OUT, and Setup Token Packet Format
Access-Layer Components USB Access ixUSB API
Packet Formats
SOF Token Packet Format
Data Packet Format
Transaction Formats
Handshake Packet Format
Bits 023 Bytes
Isochronous Transaction Formats
Bulk Transaction Formats
Action Token Packet Data Packet Handshake Packet
Action Token Packet Data Packet
MMU P-Attribute Bit
Little-Endian Data Coherence Enable/Disable
Byteswapen Bit
Forcebyteswap Bit
PCI Bus Swap
Silicon Versions
Summary of Silicon Controls
Endian Hardware Summary
Part Number Brief Description
IXP46X network processors A-0 stepping
APB Peripherals
April 2005
Ethernet Access Component IxEthAcc
NPE Downloader IxNpeDl
NPE Message Handler IxNpeMh
Ixosalmbuf Data Payload
Data Plane
One Half-Word-Aligned Ethernet Frame LE Address Coherent
Intel XScale Core Read of IP Header LE Data Coherent
Ethernet Access MIB Statistics
Learning Database Function
Intel IXP400 Software IxEthAcc and IxEthDB Summary
27.5.4 PCI
Intel IXP400 Software OS Abstraction
ATM and HSS
Intel IXP400 Software Macros
VxWorks* Considerations
Endian Conversion Macros
#defines
VxWorks* Data Coherent Swap Code
Software Versions
Intel IXP400 Software Versions
Intel IXP400 Software Version Little-Endian Support Yes/No