repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
WIP FPC-III support
[linux/fpc-iii.git]
/
tools
/
testing
/
selftests
/
bpf
/
progs
/
loop4.c
blob
b35337926d665b3a07e49850ea8644403e0c83a4
1
// SPDX-License-Identifier: GPL-2.0
2
// Copyright (c) 2019 Facebook
3
#include <linux/bpf.h>
4
#include <bpf/bpf_helpers.h>
5
6
char
_license
[]
SEC
(
"license"
) =
"GPL"
;
7
8
SEC
(
"socket"
)
9
int
combinations
(
volatile
struct
__sk_buff
*
skb
)
10
{
11
int
ret
=
0
,
i
;
12
13
#pragma nounroll
14
for
(
i
=
0
;
i
<
20
;
i
++)
15
if
(
skb
->
len
)
16
ret
|=
1
<<
i
;
17
return
ret
;
18
}