Commit:     75ce7ceaa1221858c0163e75d19eb8a423a212ff
Parent:     f7b14315faf62935a791dd67969c4289563058f0
Author:     Eric Dumazet <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 9 16:14:24 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sat Feb 10 23:20:36 2007 -0800

    [NET]: Introduce union in struct dst_entry to hold 'next' pointer
    This patch introduces an anonymous union to nicely express the fact that all
    objects inherited from struct dst_entry should access to the generic 'next'
    pointer but with appropriate type verification.
    This patch is a prereq before following patches.
    Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 include/net/dst.h |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/include/net/dst.h b/include/net/dst.h
index 62b7e75..5d62342 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -37,7 +37,12 @@ struct sk_buff;
 struct dst_entry
-       struct dst_entry        *next;
+       union {
+               struct dst_entry *next;
+               struct rtable    *rt_next;
+               struct rt6_info   *rt6_next;
+               struct dn_route  *dn_next;
+       };
        atomic_t                __refcnt;       /* client references    */
        int                     __use;
        struct dst_entry        *child;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to