projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3f0b17
)
psample: Add a fwd declaration for skbuff
author
Roi Dayan
<roid@nvidia.com>
Sun, 8 Aug 2021 06:52:42 +0000
(09:52 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 06:59:11 +0000
(08:59 +0200)
[ Upstream commit
beb7f2de5728b0bd2140a652fa51f6ad85d159f7
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/psample.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/psample.h
b/include/net/psample.h
index 68ae16bb0a4a85986aeea06b2d11cc13436a32e0..20a17551f790f258247f37a50fca2250b40c7688 100644
(file)
--- a/
include/net/psample.h
+++ b/
include/net/psample.h
@@
-18,6
+18,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,