Patch rtnet support Intel i217/i218 Ethernet Controller
Hello Xenomai group,
I recently run a test of rtnet on xenomai-3-next on my Intel NUC D54250WYK with the Intel I218V Ethernet Controller.
It is patched on linux 3.14.17. Here I attached the patch to make rtnet work with i217/i218 Intel family.
Also, I found out that in rtpacket module, the declaration of packet_proto_drv lack of .device_count attribute, which makes the rtpacket & rtcap modules unable to loaded ( -EINVAL is returned), so I merge it in my patch too. I test on my system and all the following command is now working:
modprobe rtnet
modprobe rt_e1000e
modprobe rtpacket
modprobe rtcap
rtifconfig rteth0 up
ifconfig rteth0 up
ifconfig rteth0-mac up
But if I used the rteth0 interface, I can't unload rt_e1000e.
Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository.
Best regards,
Signature · 9 lines
Huy Cong Wandercraft SAS -------------- next part -------------- A non-text attachment was scrubbed... Name: xenomai-3-next-rtnet-i217.patch Type: text/x-patch Size: 26921 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150127/b0caea4a/attachment.bin>
Quoted 7 lines · Huy Cong Vu
Hello Xenomai group,
I recently run a test of rtnet on xenomai-3-next on my Intel NUC D54250WYK with the Intel I218V Ethernet Controller.
It is patched on linux 3.14.17. Here I attached the patch to make rtnet work with i217/i218 Intel family.
Also, I found out that in rtpacket module, the declaration ofpacket_proto_drvlack of .device_count attribute, which makes the rtpacket & rtcap modules unable to loaded (-EINVALis returned), so I merge it in my patch too. I test on my system and all the following command is now working:
modprobe rtnet
modprobert_e1000e
Quoted 8 lines
modprobe rtpacket
modprobe rtcap
rtifconfig rteth0 up
ifconfig rteth0 up
ifconfig rteth0-mac up
But if I used the rteth0 interface, I can't unloadrt_e1000e.
Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository. Best regards,
In Xenomai 3, you need to deconfigure the interface before you try to unload it.
Signature · 1 line
Gilles.
----- Mail original -----
Quoted 28 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 16:39:03
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 12 lines · Huy Cong Vu
Hello Xenomai group,
I recently run a test of rtnet on xenomai-3-next on my Intel NUC D54250WYK with the Intel I218V Ethernet Controller.
It is patched on linux 3.14.17. Here I attached the patch to make rtnet work with i217/i218 Intel family.
Also, I found out that in rtpacket module, the declaration ofpacket_proto_drvlack of .device_count attribute, which makes the rtpacket & rtcap modules unable to loaded (-EINVALis returned), so I merge it in my patch too. I test on my system and all the following command is now working:
modprobe rtnet
modprobert_e1000e
modprobe rtpacketQuoted 8 lines
modprobe rtcap
rtifconfig rteth0 up
ifconfig rteth0 up
ifconfig rteth0-mac up
But if I used the rteth0 interface, I can't unloadrt_e1000e. Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository.
Best regards,
Quoted 2 lines
In Xenomai 3, you need to deconfigure the interface before you try to unload it.
If I tried to turn off rteth0 interface after using it, I still can't unload rt_e1000e. For now, this work:
modprobe rt_e1000e
modprobe rtpacket
rtifconfig rteth0 up
rtifconfig rteth0 down
rmmod rt_e1000e
rmmod rtpacket
This doesn't work:
modprobe rt_e1000e
modprobe rtpacket
rtifconfig rteth0 up
//Send datagram through rteth0 interface
rtifconfig rteth0 down
rmmod rt_e1000e
Do I have to do anything special from application level to deconfigure rteth0 too?
Quoted 3 lines
--
Gilles.
Signature · 2 lines
Huy Cong Wandercraft SAS
Quoted 51 lines · Huy Cong Vu
----- Mail original -----
Quoted 28 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 16:39:03
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 12 lines · Huy Cong Vu
Hello Xenomai group,
I recently run a test of rtnet on xenomai-3-next on my Intel NUC D54250WYK with the Intel I218V Ethernet Controller.
It is patched on linux 3.14.17. Here I attached the patch to make rtnet work with i217/i218 Intel family.
Also, I found out that in rtpacket module, the declaration ofpacket_proto_drvlack of .device_count attribute, which makes the rtpacket & rtcap modules unable to loaded (-EINVALis returned), so I merge it in my patch too. I test on my system and all the following command is now working:
modprobe rtnet
modprobert_e1000e
modprobe rtpacketQuoted 8 lines
modprobe rtcap
rtifconfig rteth0 up
ifconfig rteth0 up
ifconfig rteth0-mac up
But if I used the rteth0 interface, I can't unloadrt_e1000e. Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository.
Best regards,Quoted 2 lines
In Xenomai 3, you need to deconfigure the interface before you try to unload it.
If I tried to turn off rteth0 interface after using it, I still can't unload
rt_e1000e. For now, this work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
rtifconfig rteth0 down
rmmodrt_e1000e
rmmod rtpacketThis doesn't work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
//Send datagram through rteth0 interface
rtifconfig rteth0 down
rmmodrt_e1000e
Quoted 1 line
Do I have to do anything special from application level to deconfigure rteth0 too?
No, rtifconfig down should be enough. Note that the module count handling requires some patches in the I-pipe kernel. Since it was reworked, it is entirely possible that there are some glitches with it, or that some necessary change in rt_e1000e.c is missing.
Also, since the multiple modules system will not fly for building rtnet and its modules into the kernel, this will be reworked.
Other than that, does rtnet work for you ?
Signature · 1 line
Gilles.
----- Mail original -----
Quoted 67 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 17:00:45
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 52 lines · Huy Cong Vu
----- Mail original -----
Quoted 28 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 16:39:03
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 12 lines · Huy Cong Vu
Hello Xenomai group,
I recently run a test of rtnet on xenomai-3-next on my Intel NUC D54250WYK with the Intel I218V Ethernet Controller.
It is patched on linux 3.14.17. Here I attached the patch to make rtnet work with i217/i218 Intel family.
Also, I found out that in rtpacket module, the declaration ofpacket_proto_drvlack of .device_count attribute, which makes the rtpacket & rtcap modules unable to loaded (-EINVALis returned), so I merge it in my patch too. I test on my system and all the following command is now working:
modprobe rtnet
modprobert_e1000e
modprobe rtpacketQuoted 8 lines
modprobe rtcap
rtifconfig rteth0 up
ifconfig rteth0 up
ifconfig rteth0-mac up
But if I used the rteth0 interface, I can't unloadrt_e1000e. Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository.
Best regards,Quoted 2 lines
In Xenomai 3, you need to deconfigure the interface before you try to unload it.
If I tried to turn off rteth0 interface after using it, I still can't unload
rt_e1000e.
For now, this work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
rtifconfig rteth0 down
rmmodrt_e1000e
rmmod rtpacketThis doesn't work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
//Send datagram through rteth0 interface
rtifconfig rteth0 down
rmmodrt_e1000eQuoted 2 lines
Do I have to do anything special from application level to deconfigure rteth0 too?
No, rtifconfig down should be enough. Note that the module count handling requires some patches in the I-pipe kernel. Since it was reworked, it is entirely possible that there are some glitches with it, or that some necessary change in
rt_e1000e.cis missing.
Quoted 4 lines
Also, since the multiple modules system will not fly for building rtnet and its modules into the kernel, this will be reworked.
Other than that, does rtnet work for you ?
Yes, except this problem, my test with rtnet runs fine.
Quoted 3 lines
--
Gilles.
Signature · 2 lines
Huy Cong Wandercraft SAS
----- Mail original -----
Quoted 6 lines
De: "Huy Cong Vu" <[email protected]>
À: "Gilles Chanteperdrix" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 17:11:40
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet Controller
Quoted 60 lines
----- Mail original -----
Quoted 59 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 17:00:45
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 52 lines · Huy Cong Vu
----- Mail original -----
Quoted 28 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 16:39:03
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 12 lines · Huy Cong Vu
Hello Xenomai group,
I recently run a test of rtnet on xenomai-3-next on my Intel NUC D54250WYK with the Intel I218V Ethernet Controller.
It is patched on linux 3.14.17. Here I attached the patch to make rtnet work with i217/i218 Intel family.
Also, I found out that in rtpacket module, the declaration ofpacket_proto_drvlack of .device_count attribute, which makes the rtpacket & rtcap modules unable to loaded (-EINVALis returned), so I merge it in my patch too. I test on my system and all the following command is now working:
modprobe rtnet
modprobert_e1000e
modprobe rtpacketQuoted 8 lines
modprobe rtcap
rtifconfig rteth0 up
ifconfig rteth0 up
ifconfig rteth0-mac up
But if I used the rteth0 interface, I can't unloadrt_e1000e. Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository.
Best regards,Quoted 2 lines
In Xenomai 3, you need to deconfigure the interface before you try to unload it.
If I tried to turn off rteth0 interface after using it, I still can't unload
rt_e1000e.
For now, this work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
rtifconfig rteth0 down
rmmodrt_e1000e
rmmod rtpacketThis doesn't work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
//Send datagram through rteth0 interface
rtifconfig rteth0 down
rmmodrt_e1000e
This patch helps.
kernel/drivers/net/stack/packet/af_packet.c +1 -0
@@ -456,6 +456,7 @@ rt_packet_sendmsg(struct rtdm_fd *fd, const struct msghdr *msg, int msg_flags) } out: +rtdev_dereference (rtdev);return ret; err:
Now it seems ok to unload all modules for me.
Quoted 27 lines
Quoted 8 lines
Quoted 2 lines
Do I have to do anything special from application level to deconfigure rteth0 too?
No, rtifconfig down should be enough. Note that the module count handling requires some patches in the I-pipe kernel. Since it was reworked, it is entirely possible that there are some glitches with it, or that some necessary change in
rt_e1000e.cis missing.Quoted 4 lines
Also, since the multiple modules system will not fly for building rtnet and its modules into the kernel, this will be reworked.
Other than that, does rtnet work for you ?
Yes, except this problem, my test with rtnet runs fine.
Quoted 3 lines
--
Gilles.--
Huy Cong
Wandercraft SAS_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
Signature · 2 lines
Huy Cong Wandercraft SAS
Quoted 85 lines · Huy Cong Vu
----- Mail original -----
Quoted 6 lines
De: "Huy Cong Vu" <[email protected]>
À: "Gilles Chanteperdrix" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 17:11:40
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 60 lines
----- Mail original -----
Quoted 59 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 17:00:45
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 52 lines · Huy Cong Vu
----- Mail original -----
Quoted 28 lines
De: "Gilles Chanteperdrix" <[email protected]>
À: "Huy Cong Vu" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 27 Janvier 2015 16:39:03
Objet: Re: [Xenomai] Patch rtnet support Intel i217/i218 Ethernet ControllerQuoted 12 lines · Huy Cong Vu
Hello Xenomai group,
I recently run a test of rtnet on xenomai-3-next on my Intel NUC D54250WYK with the Intel I218V Ethernet Controller.
It is patched on linux 3.14.17. Here I attached the patch to make rtnet work with i217/i218 Intel family.
Also, I found out that in rtpacket module, the declaration ofpacket_proto_drvlack of .device_count attribute, which makes the rtpacket & rtcap modules unable to loaded (-EINVALis returned), so I merge it in my patch too. I test on my system and all the following command is now working:
modprobe rtnet
modprobert_e1000e
modprobe rtpacketQuoted 8 lines
modprobe rtcap
rtifconfig rteth0 up
ifconfig rteth0 up
ifconfig rteth0-mac up
But if I used the rteth0 interface, I can't unloadrt_e1000e. Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository.
Best regards,Quoted 2 lines
In Xenomai 3, you need to deconfigure the interface before you try to unload it.
If I tried to turn off rteth0 interface after using it, I still can't unload
rt_e1000e.
For now, this work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
rtifconfig rteth0 down
rmmodrt_e1000e
rmmod rtpacketThis doesn't work:
modprobert_e1000e
modprobe rtpacket
rtifconfig rteth0 up
//Send datagram through rteth0 interface
rtifconfig rteth0 down
rmmodrt_e1000eThis patch helps.
kernel/drivers/net/stack/packet/af_packet.c +1
-0@@ -456,6 +456,7 @@ rt_packet_sendmsg(struct rtdm_fd *fd, const struct msghdr *msg, int msg_flags) } out: +rtdev_dereference (rtdev);return ret; err:
Quoted 1 line
Now it seems ok to unload all modules for me.
Ok, will merge, thanks.
Signature · 1 line
Gilles.
Gilles Chanteperdrix
AppliedQuoted 15 lines · Huy Cong Vu
This patch helps.
kernel/drivers/net/stack/packet/af_packet.c +1
-0@@ -456,6 +456,7 @@ rt_packet_sendmsg(struct rtdm_fd *fd, const struct msghdr *msg, int msg_flags) } out: +rtdev_dereference (rtdev);return ret; err:
Quoted 1 line
Now it seems ok to unload all modules for me.
Merged, thanks.
Signature · 1 line
Gilles.
Gilles Chanteperdrix
AppliedQuoted 1 line · Huy Cong Vu
Could you take a look and see if anything is wrong, and if you find it useful, merge it in your git repository.
Merged, thanks.
Signature · 1 line
Gilles.