-
Notifications
You must be signed in to change notification settings - Fork 82
PacketMemStats
Tom Barbette edited this page May 7, 2020
·
1 revision
PacketMemStats — Click element; keep statistics about packet memory
PacketMemStats([ALIGN_STRIDE])
Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic
Expects Ethernet packets as input. Checks whether input packets are aligned with respect to the ALIGN_STRIDE argument and counts aligned and total packets. Reports the ratio of aligned/total and unaligned/total packets.
Keyword arguments are:
- ALIGN_STRIDE — Unsigned integer. Defines the stride of the alignment. Defaults to 64 (usual cache line length).
FromDevice(eth0) -> PacketMemStats() -> ...
- align_stride (read-only) — Returns the stride of the alignment.
- aligned_pkts (read-only) — Returns the number of aligned packets with respect to the stride.
- unaligned_pkts (read-only) — Returns the number of unaligned packets with respect to the stride.
- total_pkts (read-only) — Returns the total number of packets seen so far.
- align_stride (write-only) — Updates the alignment stride.
Generated by click-elem2man from ../elements/analysis/packetmemstats.hh:12
on 2020/05/07.