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

Modified on: 3/20/02,

4.8.3 counters.uc4.8.3.1 counter_reset()

Resets the specified counter to zero.

counter_reset(in_counter_base, in_counter_offset, IN_ENABLE_FLAGS)
4.8.3.2 counter_inc()

Increments the specified counter.

counter_inc(in_counter_base, in_counter_offset, IN_ENABLE_FLAGS)
4.8.3.3 port_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)
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
Counter Group Description
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.
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.
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.