]> err.no Git - linux-2.6/blobdiff - include/net/dst.h
Pull bugzilla-9494 into release branch
[linux-2.6] / include / net / dst.h
index 82270f9332db94077bb6d95bcca2f2ef0010c636..2f65e894b8295f310ad20d331e56d981c94b67d0 100644 (file)
@@ -47,7 +47,6 @@ struct dst_entry
 #define DST_NOXFRM             2
 #define DST_NOPOLICY           4
 #define DST_NOHASH             8
-#define DST_BALANCED            0x10
        unsigned long           expires;
 
        unsigned short          header_len;     /* more space at head required */
@@ -144,6 +143,13 @@ static inline void dst_hold(struct dst_entry * dst)
        atomic_inc(&dst->__refcnt);
 }
 
+static inline void dst_use(struct dst_entry *dst, unsigned long time)
+{
+       dst_hold(dst);
+       dst->__use++;
+       dst->lastuse = time;
+}
+
 static inline
 struct dst_entry * dst_clone(struct dst_entry * dst)
 {