]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - include/net/ip_fib.h
ipv4: percpu nh_rth_output cache
[mirror_ubuntu-focal-kernel.git] / include / net / ip_fib.h
index e521a03515b170cbff8c94d65e08f8cd69d88627..e331746029b42c1a92037b33afef10e3f54ae754 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/rcupdate.h>
 #include <net/fib_rules.h>
 #include <net/inetpeer.h>
+#include <linux/percpu.h>
 
 struct fib_config {
        u8                      fc_dst_len;
@@ -81,7 +82,7 @@ struct fib_nh {
        __be32                  nh_gw;
        __be32                  nh_saddr;
        int                     nh_saddr_genid;
-       struct rtable __rcu     *nh_rth_output;
+       struct rtable __rcu * __percpu *nh_pcpu_rth_output;
        struct rtable __rcu     *nh_rth_input;
        struct fnhe_hash_bucket *nh_exceptions;
 };