mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Cornelia Huck" <COHUCK@de.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: kuznet@ms2.inr.ac.ru, davem@redhat.com
Subject: [PATCHLET] Tiny fixes for fastrouting
Date: Wed, 16 Jan 2002 16:57:27 +0100	[thread overview]
Message-ID: <OF58C79499.EC73CC6E-ONC1256B43.00542D7F@de.ibm.com> (raw)

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


             reply	other threads:[~2002-01-16 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-16 15:57 Cornelia Huck [this message]
2002-01-17  1:06 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF58C79499.EC73CC6E-ONC1256B43.00542D7F@de.ibm.com \
    --to=cohuck@de.ibm.com \
    --cc=davem@redhat.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®