]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/net/ip_fib.h
ipv4: Cache output routes in fib_info nexthops.
[mirror_ubuntu-zesty-kernel.git] / include / net / ip_fib.h
index e9ee1ca0708729529e25bafd63a51c6184e786b7..fb62c590360ed289a4534f02fe01c6962308168f 100644 (file)
@@ -46,12 +46,13 @@ struct fib_config {
  };
 
 struct fib_info;
+struct rtable;
 
 struct fib_nh_exception {
        struct fib_nh_exception __rcu   *fnhe_next;
        __be32                          fnhe_daddr;
        u32                             fnhe_pmtu;
-       u32                             fnhe_gw;
+       __be32                          fnhe_gw;
        unsigned long                   fnhe_expires;
        unsigned long                   fnhe_stamp;
 };
@@ -80,6 +81,7 @@ struct fib_nh {
        __be32                  nh_gw;
        __be32                  nh_saddr;
        int                     nh_saddr_genid;
+       struct rtable           *nh_rth_output;
        struct fnhe_hash_bucket *nh_exceptions;
 };