1. Enable ASF in Linux Kernel
Step 1: Launch the kernel menu using the command: bitbake -c menuconfig virtual/kernel
Step 2: Enable ASF under Device Driver -> Networking device support -> Application Specific Fastpath
Step 3: Build the final binaries that needs to be loaded on T1040RDB using the command : bitbake fsl-image-core
NOTE: The ASF modules are compiled as dynamically loadable modules and placed in the ROOTFS under the path /usr/driver/asf/min and /usr/driver/asf/full
2. Steps to boot the board with 2 cores: (optional)
=> cpu 2 disable
=> cpu 3 disable
=> boot
A. Enable ip_forwarding and Linux performance parameters
B. Insmod ASF ko’s
C. Run fmc command :
D. Assign interface IP addresses and routes according to setup.
E. Configure IPSec policies and SAs (attached below that needs to be downloaded to the box via tftp or sftp)
F. Switch settings
Using UIO: /dev/uio0
Mapped register memory @ 0xb7b3f000
Chipid: 099530e9
fsl_dpa ethernet.17 fm1-gb0: Err FD status = 0x00040000
fsl_dpa ethernet.18 fm1-gb1: Err FD status = 0x00040000
l2switch>
l2switch>mac add 00:00:00:00:00:01 3 [MAC 00:00...00:01 is reachable on port 3]
m2switch>mac add 00:00:00:00:00:03 7
l2switch>mac add 00:04:9f:03:30:f6 8 [MAC of fm1-gb0]
l2switch>mac add 00:04:9f:03:30:f7 9 [MAC of fm1-gb1]
l2switch>mac dump [Displays MACDB of switch (static & Dynamic)]
Type VID MAC Address Ports
------ --- ----------------- -----
Static 1 00:00:00:00:00:01 3
Static 1 00:00:00:00:00:03 7
Static 1 00:04:9f:03:30:f6 8
Static 1 00:04:9f:03:30:f7 9
Static entries: 4
Dynamic entries: 0
l2switch> l2switch>^Z [Press ctrl+z to stop the process]
[1]+ Stopped(SIGTSTP) l2sw_bin
root@t1040rdb:/mnt/sridhar/asf-bins/qos/bin/full#
G. Configure IXIA/STC to generate the traffic with 128 flows.
H. Start the traffic from both end and verify all the flows are offloaded and packet is going through IPSec ASF.
Note: Except switch settings everything is similar to previous performance releases by IDC.
I. The ASF flow can be observed using the following command
PFA in attachment