-
Notifications
You must be signed in to change notification settings - Fork 81
ToNetmapDevice
Tom Barbette edited this page Nov 25, 2022
·
2 revisions
ToNetmapDevice — Click element;
ToNetmapDevice(DEVNAME [, QUEUE, N_QUEUES, [, keywords PROMISC, BURST])
Sends packets using Netmap
Ports: 1 input, at most 2 outputs
Drivers: userlevel
Send packets through a Netmap device, optionnaly specifying a queue number. This element is NOT thread safe. This element supports both push and pull. In push mode, it will batch packets up to BURST then sends them. If the output rings are full, it will either block until there is some space (if
BLOCKANT is set) or it will internally queue the packets and finally drops
them if there is still not enough space.
- DEVNAME — String Device name
- QUEUE — Integer. A specific hardware queue to use. Default is 0.
- N_QUEUES — Integer. Number of hardware queues to use. -1 or default is to use as many queues as threads which can end up in this element.
- IQUEUE (push mode only) — Unsigned integer Number of packets that we can bufferize if all output rings are full while in push mode
- BLOCKING (push mode only) — Boolean. If true and packets are pushed and the IQUEUE is full, the element will loop until there is space in the output ring, or we'll drop. Default true.
- MAXTHREADS — Maximum number of threads to use.
- BURST — Number of packets to batch before sending them out.
- count (read-only) — Returns the number of packets sent by the device.
- dropped (read-only) — Returns the number of packets dropped by the device.
- reset_counts (write-only) — Resets n_send and n_dropped counts to zero.
Generated by click-elem2man from ../elements/userlevel/tonetmapdevice.hh:18
on 2022/11/25.