public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHLET] Tiny fixes for fastrouting
@ 2002-01-16 15:57 Cornelia Huck
  2002-01-17  1:06 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Cornelia Huck @ 2002-01-16 15:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: kuznet, davem

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCHLET] Tiny fixes for fastrouting
  2002-01-16 15:57 [PATCHLET] Tiny fixes for fastrouting Cornelia Huck
@ 2002-01-17  1:06 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-01-17  1:06 UTC (permalink / raw)
  To: COHUCK; +Cc: linux-kernel, kuznet

   From: "Cornelia Huck" <COHUCK@de.ibm.com>
   Date: Wed, 16 Jan 2002 16:57:27 +0100

I've applied your patches, thanks.  But PLEASE!
In the future use a mailer that does not undo tab
characters, I could not apply your patch as-is I had
to hand apply it because:

   -    if (pt->data) {
   +    if ((pt->data) && ((int)(pt->data)!=1)) {

had the said corruption.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-17  1:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-16 15:57 [PATCHLET] Tiny fixes for fastrouting Cornelia Huck
2002-01-17  1:06 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox