Swap Mac Feature; Traffic Mirroring - Chelsio Communications Terminator Series Installation And User Manual

Unified wire for linux
Hide thumbs Also See for Terminator Series:
Table of Contents

Advertisement

Chapter XX. Classification and Filtering
3.6.

Swap MAC Feature

Chelsio's T6/T5 Swap MAC feature swaps packet source MAC and destination MAC addresses.
This is applicable only for switch filter rules. Here's an example:
[root@host~]# cxgbtool eth2 filter 100 action switch lip 102.2.2.1 fip
102.2.2.2 lport 5001 fport 14000 hitcnts 1 iport 1 eport 0 swapmac 1 proto
17 cap maskless
Hash-Filter Index = 21936
The above example will swap source and destination MAC addresses of UDP packets (matching
above 4 tuple) received on adapter port 1 and then switch them to port 0.
3.7.

Traffic Mirroring

On T5 adapters, when using Hash Filter configuration tuning option, Network driver (cxgb4)
parameter enable_mirror can be used to enable mirroring of traffic running on physical ports. The
mirrored traffic will be received via Mirror PF/VF on Mirror Receive queues, which will then inject
this traffic into network stack of Linux kernel.
Enabling Mirroring
To enable traffic mirroring, follow the steps mentioned below:
i.
If not done already, install Unified Wire with Hash Filter configuration tuning option as
mentioned in the
Unified Wire
ii. Enable vnic_id match for filterMode in Hash filter config file, t5-config.txt, located in
/lib/firmware/cxgb4/
filterMode = fragmentation, mpshittype, protocol, vnic_id, port, fcoe
filterMask = port, protocol, vnic_id
iii. Unload network driver (cxgb4) and reload it with mirroring enabled.
[root@host~]# rmmod cxgb4
[root@host~]# modprobe cxgb4 enable_mirror=1 use_ddr_filters=1
iv. The traffic will now be mirrored and received via mirror PF/VF corresponding to each port.
Chelsio Unified Wire for Linux
chapter.
292

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Terminator Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Terminator 6

Table of Contents