aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoi Dayan <roid@nvidia.com>2021-08-08 09:52:42 +0300
committerJakub Kicinski <kuba@kernel.org>2021-08-09 15:34:21 -0700
commitbeb7f2de5728b0bd2140a652fa51f6ad85d159f7 (patch)
tree638633db8957fd855b30518afcaa19f42311533c
parentnet: sched: act_mirred: Reset ct info when mirror/redirect skb (diff)
downloadlinux-dev-beb7f2de5728b0bd2140a652fa51f6ad85d159f7.tar.xz
linux-dev-beb7f2de5728b0bd2140a652fa51f6ad85d159f7.zip
psample: Add a fwd declaration for skbuff
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 <roid@nvidia.com> Link: https://lore.kernel.org/r/20210808065242.1522535-1-roid@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--include/net/psample.h2
1 files changed, 2 insertions, 0 deletions
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,