lkml.org 
[lkml]   [2002]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCHLET] Tiny fixes for fastrouting
From
Date
Hi folks,

the following patchlet fixes two things:

- The calculation of netdev_fastroute_obstacles should now be correct.
- A driver exploiting fastrouting compiled as a module will need
netdev_fastroute to be exported.

Patchlet should go fine into 2.4.18-pre4 and 2.5.3-pre1.

[Please cc me since I'm not subscribed to lkml]

diff -Naur linux.vanilla/net/core/dev.c linux/net/core/dev.c
--- linux.vanilla/net/core/dev.c Wed Jan 16 14:23:32 2002
+++ linux/net/core/dev.c Wed Jan 16 14:28:13 2002
@@ -238,7 +238,7 @@

#ifdef CONFIG_NET_FASTROUTE
/* Hack to detect packet socket */
- if (pt->data) {
+ if ((pt->data) && ((int)(pt->data)!=1)) {
netdev_fastroute_obstacles++;
dev_clear_fastroute(pt->dev);
}
diff -Naur linux.vanilla/net/netsyms.c linux/net/netsyms.c
--- linux.vanilla/net/netsyms.c Wed Jan 16 14:23:32 2002
+++ linux/net/netsyms.c Wed Jan 16 14:25:43 2002
@@ -519,6 +519,10 @@
EXPORT_SYMBOL(hippi_type_trans);
#endif

+#ifdef CONFIG_NET_FASTROUTE
+EXPORT_SYMBOL(netdev_fastroute);
+#endif
+
#ifdef CONFIG_SYSCTL
EXPORT_SYMBOL(sysctl_wmem_max);
EXPORT_SYMBOL(sysctl_rmem_max);
Mit freundlichen Grüßen/Regards
Cornelia Huck

Linux for zSeries Development
IBM Deutschland Entwicklung GmbH
Email: cohuck@de.ibm.com
Phone: ext. +49(0)7031/16-4837, int. *120-4837

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:23    [W:0.115 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site