ChangeSet 1.2229.1.14, 2005/03/18 10:45:06-08:00, [EMAIL PROTECTED]

        [NET]: Make dst_allfrag use dst instead of dst->path
        
        > BTW, shouldn't dst_allfrag be called dst_path_allfrag?
        
        Rather than doing that, let's make the path usage explicit in
        the one place that it's needed (the same place where we use
        dst_mtu(dst->path)).
        
        Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 include/net/dst.h     |    2 +-
 net/ipv6/ip6_output.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/include/net/dst.h b/include/net/dst.h
--- a/include/net/dst.h 2005-03-18 14:11:09 -08:00
+++ b/include/net/dst.h 2005-03-18 14:11:09 -08:00
@@ -123,7 +123,7 @@
 static inline u32
 dst_allfrag(const struct dst_entry *dst)
 {
-       int ret = dst_metric(dst->path, RTAX_FEATURES) & RTAX_FEATURE_ALLFRAG;
+       int ret = dst_metric(dst, RTAX_FEATURES) & RTAX_FEATURE_ALLFRAG;
        /* Yes, _exactly_. This is paranoia. */
        barrier();
        return ret;
diff -Nru a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
--- a/net/ipv6/ip6_output.c     2005-03-18 14:11:09 -08:00
+++ b/net/ipv6/ip6_output.c     2005-03-18 14:11:09 -08:00
@@ -851,7 +851,7 @@
                inet->cork.fl = *fl;
                np->cork.hop_limit = hlimit;
                inet->cork.fragsize = mtu = dst_mtu(rt->u.dst.path);
-               if (dst_allfrag(&rt->u.dst))
+               if (dst_allfrag(rt->u.dst.path))
                        inet->cork.flags |= IPCORK_ALLFRAG;
                inet->cork.length = 0;
                sk->sk_sndmsg_page = NULL;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to