IXP1200 Network Processor Family ATM OC-3/12/Ethernet IP Router Example Design

Counter

Group

Description

 

 

 

COUNT_QUEUE_FAIL

(1 << 8)

enqueue/dequeue error events

 

 

 

COUNT_CRC32

(1 << 9)

normal CRC-32 activity

 

 

 

COUNT_CRC32_FAIL

(1 << 10)

CRC-32 error

 

 

 

4.8.3counters.uc

4.8.3.1counter_reset()

Resets the specified counter to zero.

counter_reset(in_counter_base, in_counter_offset, IN_ENABLE_FLAGS)

Parameter

Description

 

 

in_counter_base

Base counter number.

 

 

in_counter_offset

Counter offset.

 

 

IN_ENABLE_FLAGS

Counter increment flag. Must match the COUNTERS_ENABLE_MASK bit.

 

 

4.8.3.2counter_inc()

Increments the specified counter.

counter_inc(in_counter_base, in_counter_offset, IN_ENABLE_FLAGS)

Parameter

Description

 

 

in_counter_base

Base counter number.

 

 

in_counter_offset

Counter offset.

 

 

IN_ENABLE_FLAGS

Counter increment flag. Must match the COUNTERS_ENABLE_MASK bit.

 

 

4.8.3.3port_counter_inc()

Increments the per-port counter, and optionally, the global discard counter.

port_counter_inc(in_port_index, IN_PORT_BASE, IN_EXCEPTION_INDEX,

IN_PORT_COUNTERS_BASE, IN_TOTAL_DISCARDS, IN_MAX_PORT_NUMBER, IN_ENABLE_FLAGS)

Parameter

Description

 

 

in_port_index

Port index.

 

 

IN_PORT_BASE

Base port number.

 

 

IN_EXCEPTION_INDEX

The per-port counter to be incremented.

 

 

IN_PORT_COUNTERS_BASE

Address of 0th counter for port 0.

 

 

Application Note

49

Modified on: 3/20/02,

Page 49
Image 49
Intel IXP1200 manual Counters.uc Counterreset, Counterinc, Portcounterinc