1 ; SPDX-License-Identifier: BSD-3-Clause
2 ; Copyright(c) 2021 Intel Corporation
4 ; This program is setting up an array of Two Rate Three Color Marker (trTCM) meters called "meters".
5 ; Every input packet (Ethernet/IPv4) is metered by the meter at the location indexed by the IPv4
6 ; header "Source Address" field. All green packets are sent out on port 0, the yellow ones on port 1
7 ; and the red ones on port 2.
9 ; The "meter stats" CLI command can be used to read the packet and byte statistics counters of any
25 bit<16> identification
34 header ethernet instanceof ethernet_h
35 header ipv4 instanceof ipv4_h
45 metadata instanceof metadata_t
50 metarray meters size 65536
59 meter meters h.ipv4.src_addr h.ipv4.total_len 0 m.port_out