Using matching patterns for – Teledyne LeCroy IBTrainer - IBTrainer Users Manual User Manual
Page 48

Testing with the User Interface
Viewing the Results
48
CATC IBTrainer InfiniBand Exerciser, August 2002
Using Matching Patterns for Filtering
Incoming Packets
The IBTrainer is capable of responding to incoming packets under
software control and apply a pattern matching process to these packets.
This process is the following:
1. When a packet is received on one of the 15 available lanes, depending
on the settings of the VL Configuration dialog box (accessible via
Generator > Configure VLs
), it is stored either in the receive buffer
(Buffer) or in the memory block of the receive memory.
Refer to “How to Configure Virtual Lanes for Rerouting Incoming
for more information.
2. The pattern matching process is performed on all packets (Generic)
or only on packets coming from a given part of the memory.
3. If an offset is specified (in DWORD), only bits coming after the
entered offset will be considered.
4. If a mask is specified, the software performs a bitwise AND operation
on the incoming packet and the mask. The matching process will be
performed on the resulting bits.
5. These bits of the incoming packet are compared to a given value.
6. Once the pattern is performed, an additional action can be performed
on the incoming packet:
– You can discard all incoming packets for which the extracted bits
do not match the set value (DISCARDNOHIT).
– You can perform the desired actions for packets which are NOT
matched (NEGATEPATTERN).
If DISCARDNOHIT and NEGATEPATTERN are set, only matching
packets are discarded, and non-matching ones kept.
– You can launch a step register strobe for all packets for which the
extracted bits match the set value (STEPSTROBE).