MoonGen
|
Filter for IXGBE ... More...
Go to the source code of this file.
Functions | |
function mod | addHW5tupleFilter (dev, filter, queue, priority) |
Installs a 5tuple filter on the device. More... | |
function mod addHW5tupleFilter | ( | dev | , |
filter | , | ||
queue | , | ||
priority | |||
) |
Installs a 5tuple filter on the device.
Matching packets will be redirected into the specified rx queue NOTE: this is currently only tested for X540 NICs, and will probably also work for 82599 and other ixgbe NICs. Use on other NICs might result in undefined behavior.
filter | A table describing the filter. Possible fields are src_ip : Sourche IPv4 Address dst_ip : Destination IPv4 Address src_port : Source L4 port dst_port : Destination L4 port l4protocol: L4 Protocol type supported protocols: ip.PROTO_ICMP, ip.PROTO_TCP, ip.PROTO_UDP If a non supported type is given, the filter will only match on protocols, which are not supported. All fields are optional. If a field is not present, or nil, the filter will ignore this field when checking for a match. |
queue | RX Queue, where packets, matching this filter will be redirected |
priority | optional (default = 1) The priority of this filter rule. 7 is the highest priority and 1 the lowest priority. |