b4860qds shared mac USDPAA can not recieve replay pkts from dpdk pktgen with FD Status 0x00000020

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

b4860qds shared mac USDPAA can not recieve replay pkts from dpdk pktgen with FD Status 0x00000020

192 Views
BinLiu1
Contributor II

Hi,

On b4860qds board, I configure 1G SFP Port as a shared-mac and use config.xml as well as policy.xml to split the traffic according to the following rules:

1)  Udp pkt with dst port 2152 goes to USDPAA

2) Otherwise goes to kernel

And then run the example case: reflector using the command:

reflector -d 0x10000000 -b 1600:1600:1600 -c config.xml -p usdpaa_policy_hash_shared_mac_ipv4_nodefault.xml

root@b4860qds:/apps/usdpaa_example# ./reflector -d 0x10000000 -b 1600:1600:1600 -c config.xml -p usdpaa_policy_hash_shared_mac_ipv4_nodefault.xml
Found /fsl,dpaa/ethernet@4, Tx Channel = 806, FMAN = 0, Port ID = 5
Found /fsl,dpaa/ethernet@16, MAC-LESS node
Found /fsl,dpaa/ethernet@18, MAC-LESS node
Found /fsl,dpaa/ethernet@19, MAC-LESS node
Configuring for 1 network interface
Allocated DMA region size 0x10000000
cpu hotplug daemon not running: No such file or directory
reflector starting
Released 1600 bufs to BPID 20
Data stashing: Enabled
Thread uid:0 alive (on cpu 1)
reflector> ifconfig
.......... USDPAA Configuration ..........

Network interfaces: 1

+ Fman 0, MAC 5 (1G);
mac_addr: 00:e0:01:00:02:54
tx_channel_id: 0x806
fqid_rx_hash:
(PCD: start 0x2000, count 32)
fqid_rx_def: 0x5f
fqid_rx_err: 0x5e
fqid_tx_err: 0x0
fqid_tx_confirm: 0x0
buffer pool: (bpid=20, count=2048 size=1728, addr=0x0)
reflector>

Then I use dpdk pktgen to replay the udp pkts with dst port 2152 to test line rate, but no pkt recieved  by  USDPAA and A lot of errs in dmesg log

[ 569.433079] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433091] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433093] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433098] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433103] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433109] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433113] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433124] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433137] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 569.433142] fsl_dpa_shared-shared fsl,dpaa:ethernet@4 fm1-mac5: FD status = 0x00000020
[ 574.437071] net_ratelimit: 440529 callbacks suppressed

And a lot of rx errors rasied!!

what does this mean? Please help me. Thanks a lot!

The pkts I reply and policy file are shown in the attachments

0 Kudos
3 Replies

107 Views
BinLiu1
Contributor II

I did this as 9.9.13.1.6 told to , The only difference is I did it with reflector example.

I think reflector can support shared MAC interface. Why did it report FD status = 0x00000020? Which step I missed?

Do you know what does FD status = 0x00000020 mean? 

Thanks.

0 Kudos

96 Views
yipingwang
NXP TechSupport
NXP TechSupport
0 Kudos

109 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to section "9.9.13.1.6 How to run shared MAC interface ?" in "QorIQ SDK v2.0-1703 Documentation"

0 Kudos