forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
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