udp checksum on rx packet of dpdk

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

udp checksum on rx packet of dpdk

跳至解决方案
2,331 次查看
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 项奖励
1 解答
2,319 次查看
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 项奖励
4 回复数
2,320 次查看
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 项奖励
2,244 次查看
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 项奖励
2,233 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please use DPDK source code provided in LSDK 20.12 release.

0 项奖励
2,286 次查看
lxjlan
Contributor I

what version ? where can i get this dpdk version?

0 项奖励