udp checksum on rx packet of dpdk

cancel
Showing results for 
Search instead for 
Did you mean: 

udp checksum on rx packet of dpdk

Jump to solution
592 Views
rashmikj
Contributor III

Does DPAA driver in dpdk of LS1046ardb Kit drop receive packet if the checksum of UDP data is wrong?

if so, How do i disable it ??

0 Kudos
1 Solution
580 Views
yipingwang
NXP TechSupport
NXP TechSupport

Yes, it will drop it by default. The dpaa_ethdev.c has code (just make sure you have latest code):

 

                                if (getenv("DPAA_GET_ERROR_PACKETS_IN_APP"))

                                                fman_if_receive_rx_errors(fman_intf,

                                                                FM_FD_RX_STATUS_ERR_MASK);

                                else

                                                fman_if_discard_rx_errors(fman_intf);

 

 

Please set the env variable as : “export DPAA_GET_ERROR_PACKETS_IN_APP=1”  before running DPDK application.

View solution in original post

0 Kudos
4 Replies
581 Views
yipingwang
NXP TechSupport
NXP TechSupport

Yes, it will drop it by default. The dpaa_ethdev.c has code (just make sure you have latest code):

 

                                if (getenv("DPAA_GET_ERROR_PACKETS_IN_APP"))

                                                fman_if_receive_rx_errors(fman_intf,

                                                                FM_FD_RX_STATUS_ERR_MASK);

                                else

                                                fman_if_discard_rx_errors(fman_intf);

 

 

Please set the env variable as : “export DPAA_GET_ERROR_PACKETS_IN_APP=1”  before running DPDK application.

0 Kudos
505 Views
rashmikj
Contributor III

I am using latest dpdk available with LSDK. I checked the dpaa_ethdev.c file in dpdk. I didn't find the code as mentioned in your post. 

I have attached the dpaa_ethdev.c file .

There is no change in behaviour. It still drops the encrypted packet.

0 Kudos
494 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please use DPDK source code provided in LSDK 20.12 release.

0 Kudos
547 Views
lxjlan
Contributor I

what version ? where can i get this dpdk version?

0 Kudos