Thread (2 messages) 2 messages, 2 authors, 2021-08-09

[PATCH net 1/1] psample: Add a fwd declaration for skbuff

flat view
STALE1898d LANDED

From: Roi Dayan <hidden>
Date: 2021-08-08 06:53:15
Subsystem: networking [general], psample packet sampling support, the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Yotam Gigi, Linus Torvalds

Landed in mainline as beb7f2de5728 on 2021-08-09.

Without this there is a warning if source files include psample.h
before skbuff.h or doesn't include it at all.

Fixes: 6ae0a6286171 ("net: Introduce psample, a new genetlink channel for packet sampling")
Signed-off-by: Roi Dayan <redacted>
---
 include/net/psample.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/net/psample.h b/include/net/psample.h
index e328c5127757..0509d2d6be67 100644
--- a/include/net/psample.h
+++ b/include/net/psample.h
@@ -31,6 +31,8 @@ struct psample_group *psample_group_get(struct net *net, u32 group_num);
 void psample_group_take(struct psample_group *group);
 void psample_group_put(struct psample_group *group);
 
+struct sk_buff;
+
 #if IS_ENABLED(CONFIG_PSAMPLE)
 
 void psample_sample_packet(struct psample_group *group, struct sk_buff *skb,
-- 
2.26.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help