[PATCHLET] Tiny fixes for fastrouting

From: Cornelia Huck (COHUCK@de.ibm.com)
Date: Wed Jan 16 2002 - 10:57:27 EST


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/



This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 21:00:16 EST