Parallel routing code patch #1 (preliminary)

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Tue Jan 17 18:47:30 PST 2006


On Tue, Jan 17, 2006 at 11:22:50AM -0800, Matthew Dillon wrote:
>     Here is the first iteration of the parallel route table code.  This
>     code was developed by Jeffrey Hsu and then further work was done on
>     it by me:
> 
> 	http://apollo.backplane.com/DFlyMisc/routing01.patch
> 
>     Currently the only known bug is that ARP over token-ring will not
>     work properly.
> 
>     This patch needs basic testing.  Do 'route' commands work properly?
>     Are there inconsistencies between cpus? (recognized by having weird
>     TCP connection problems), etc etc.
> 
>     This is a very preliminary patch, 'alpha' quality at best.

Shouldn't this part in ip_input.c:
@@ -2061,7 +2065,7 @@
 						    &ipsecerror);
  
 			if (sp == NULL)
-				destmtu = ipforward_rt.ro_rt->rt_ifp->if_mtu;
+				destmtu = cache_rt->rt_ifp->if_mtu;
 			else {
 				/* count IPsec header size */
 				ipsechdr = ipsec4_hdrsiz(mcopy,

be

-				destmtu = ipforward_rt.ro_rt->rt_ifp->if_mtu;
+				destmtu = cache_rt->ro_rt->rt_ifp->if_mtu;

so as it at least compiles.





More information about the Kernel mailing list