summaryrefslogtreecommitdiff
path: root/net/core/dst_cache.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2024-06-10 10:20:16 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-06-10 10:20:16 +0200
commit8f79b09bbe69fc5cd25652e8afcc77e2f2984aab (patch)
treea0d2ff2f5becdd8df6fcf4584ca75cc4a6cfed0a /net/core/dst_cache.c
parent1aea3d1d4a21e3e7895663b848ffae79ee82e065 (diff)
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff)
Merge tag 'v6.10-rc3'
Linux 6.10-rc3 This is needed for the ipu6 and mei fixes. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'net/core/dst_cache.c')
-rw-r--r--net/core/dst_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dst_cache.c b/net/core/dst_cache.c
index 6a0482e676d3..70c634b9e7b0 100644
--- a/net/core/dst_cache.c
+++ b/net/core/dst_cache.c
@@ -27,6 +27,7 @@ struct dst_cache_pcpu {
static void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache,
struct dst_entry *dst, u32 cookie)
{
+ DEBUG_NET_WARN_ON_ONCE(!in_softirq());
dst_release(dst_cache->dst);
if (dst)
dst_hold(dst);
@@ -40,6 +41,7 @@ static struct dst_entry *dst_cache_per_cpu_get(struct dst_cache *dst_cache,
{
struct dst_entry *dst;
+ DEBUG_NET_WARN_ON_ONCE(!in_softirq());
dst = idst->dst;
if (!dst)
goto fail;