NRT send/recv with rtpacket
Hi all,
When using EtherLAB-RTDM-Net adapter [1], EtherCAT master directly calls RTDM RAW socket kernel API to send and receive Ethernet packets.
Depending on operational state, EtherCAT master can be executed as a real-time or non-real-time kernel thread.
RTpacket did not support non-real-time sendmsg and recvmsg. Attached patches fix this problem.
0004-xenomai_allow_nrt_operation_in_rtpacket.patch :
patch against xenomai-3.0.6 - TESTED OK
0001-Add-non-RT-sendmsg-and-recvmsg-in-rtpacket.patch :
same patch, "git-formated" against stable-3.0.x UNTESTED
Regards,
Edouard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-xenomai_allow_nrt_operation_in_rtpacket.patch
Type: text/x-patch
Size: 2388 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180915/ccc1fa60/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-non-RT-sendmsg-and-recvmsg-in-rtpacket.patch
Type: text/x-patch
Size: 2945 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180915/ccc1fa60/attachment-0001.bin>
Hi Edouard,
Quoted 8 lines · Edouard Tisserant
Hi all,
When using EtherLAB-RTDM-Net adapter [1], EtherCAT master directly calls RTDM RAW socket kernel API to send and receive Ethernet packets.
Depending on operational state, EtherCAT master can be executed as a real-time or non-real-time kernel thread.
Quoted 8 lines
RTpacket did not support non-real-time sendmsg and recvmsg. Attached patches fix this problem.
0004-xenomai_allow_nrt_operation_in_rtpacket.patch :
patch against xenomai-3.0.6 - TESTED OK0001-Add-non-RT-sendmsg-and-recvmsg-in-rtpacket.patch :
same patch, "git-formated" against stable-3.0.x UNTESTED
Can you send the patches as separate emails, inlined (git send-email)? This is not easily reviewable because...
Quoted 5 lines
Regards,
Edouard
Quoted 14 lines
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-xenomai_allow_nrt_operation_in_rtpacket.patch
Type: text/x-patch
Size: 2388 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180915/ccc1fa60/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-non-RT-sendmsg-and-recvmsg-in-rtpacket.patch
Type: text/x-patch
Size: 2945 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180915/ccc1fa60/attachment-0001.bin>
...these attachments are not forwarded to the list.
Also note that features should first be in next/master before we decide whether pushing them to stable as well is OK (generally, only fixes should go there). Patches should therefore target the next branch.
Thanks,
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Hi Jan
Sorry for the mess.
Quoted 4 lines
Can you send the patches as separate emails, inlined (git send-email)? This is not easily reviewable because...
...these attachments are not forwarded to the list.
ok, will resend git email so that list can review.
Quoted 3 lines
Also note that features should first be in next/master before we decide whether pushing them to stable as well is OK (generally, only fixes should go there). Patches should therefore target the next branch.
Sorry, I tried applying it on stable-3.0.x, and git feels to me like driving a tank with a trackball. I'll do it on next branch next time, and hope that rebasing this one won't be a problem... thanks in advance.
Edouard
PS: I also forgot this reference:
[1] https://hg.beremiz.org/etherlabmaster/file/tip/devices/rtdmnet.c