MoonGen
 All Files Functions Variables Pages
filter_ixgbe.lua File Reference

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...
 

Detailed Description

Filter for IXGBE ...

Todo:
TODO docu

Definition in file filter_ixgbe.lua.

Function Documentation

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.

Parameters
filterA 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.
queueRX Queue, where packets, matching this filter will be redirected
priorityoptional (default = 1) The priority of this filter rule. 7 is the highest priority and 1 the lowest priority.