enet_ethernetif_kinetis.c change explaination

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

enet_ethernetif_kinetis.c change explaination

1,062 次查看
mastupristi
Senior Contributor I

Hello,

thanks to @Gavin_Jia  (https://community.nxp.com/t5/MCUXpresso-SDK/github-repo-for-middleware/m-p/1842119#M4691) I found the lwip middleware repository containing enet_ethernetif_kinetis.c.
Analyzing the history of this file I noticed that at commit 4192f6c29 some sort of critical section was removed

commit.png

The commit message just says:

    NXP lwIP modifications for SDK version 2.13.0
    
    See ChangeLogKSDK.txt for more details.

and ChangeLogKSDK.txt is this:
https://github.com/nxp-mcuxpresso/lwip/blob/MCUX_2.13.0/ChangeLogKSDK.txt

To be honest I can't understand if it's explained why that critical section was removed.
Can you guys explain it to me? What problems were involved in having it? Or in other words, what problem does removing it solve?

 

best regards

Max

0 项奖励
回复
1 回复

972 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @mastupristi,

I'm afraid I wouldn't be able to tell you with complete certainty but believe the handling of Rx frame interruptions is already handled elsewhere, which means that there is no real necessity to handle this part as a critical section. It doesn't remove a specific issue, but rather a change for optimization. That said, if you experience any issue with this change, do let me know.

BR,
Edwin.

0 项奖励
回复