If I do 'rtifconfig rteth0 up' on a network with heavy broadcast traffic
(which I later intend to catch/throw away), the system does a hard
lockup after a few lines like these:
'RTnet: no one cared for packet with layer 3 protocol type ...'
I would humbly suggest something like the attached patch.
Regards
Anders Blomdell
--
Anders Blomdell Email: [email protected]
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
--- a/stack/stack_mgr.c 2010-10-20 17:18:10.000000000 +0200
+++ b/stack/stack_mgr.c 2010-12-07 18:06:37.000000000 +0100
@@ -28,6 +28,7 @@
#include <rtnet_internal.h>
#include <rtskb_fifo.h>
#include <stack_mgr.h>
+#include <native/timer.h>
static unsigned int stack_mgr_prio = RTNET_DEF_STACK_PRIORITY;
@@ -193,9 +194,15 @@
/* Don't warn if ETH_P_ALL listener were present or when running in
promiscuous mode (RTcap). */
- if (unlikely(!eth_p_all_hit && !(rtdev->flags & IFF_PROMISC)))
- rtdm_printk("RTnet: no one cared for packet with layer 3 "
- "protocol type 0x%04x\n", ntohs(rtskb->protocol));
+ if (unlikely(!eth_p_all_hit && !(rtdev->flags & IFF_PROMISC))) {
+ static RTIME next = 0;
+ RTIME now = rt_timer_read();
+ if (now > next) {
+ next = now + rt_timer_ns2ticks(1000000000L);
+ rtdm_printk("RTnet: no one cared for packet with layer 3 "
+ "protocol type 0x%04x\n", ntohs(rtskb->protocol));
+ }
+ }
kfree_rtskb(rtskb);
rtdev_dereference(rtdev);
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
RTnet-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rtnet-developers