hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/net/dst_cache.h
....@@ -80,6 +80,17 @@
8080 }
8181
8282 /**
83
+ * dst_cache_reset_now - invalidate the cache contents immediately
84
+ * @dst_cache: the cache
85
+ *
86
+ * The caller must be sure there are no concurrent users, as this frees
87
+ * all dst_cache users immediately, rather than waiting for the next
88
+ * per-cpu usage like dst_cache_reset does. Most callers should use the
89
+ * higher speed lazily-freed dst_cache_reset function instead.
90
+ */
91
+void dst_cache_reset_now(struct dst_cache *dst_cache);
92
+
93
+/**
8394 * dst_cache_init - initialize the cache, allocating the required storage
8495 * @dst_cache: the cache
8596 * @gfp: allocation flags