Commit e2fc818
selftests/bpf: refactor snprintf_btf test to use bpf_strncmp
The netif_receive_skb BPF program used in snprintf_btf test still uses
a custom __strncmp. This is unnecessary as the bpf_strncmp helper is
available and provides the same functionality.
This commit refactors the test to use the bpf_strncmp helper, removing
the redundant custom implementation.
Signed-off-by: Hoyeon Lee <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>1 parent c95b89c commit e2fc818
1 file changed
+1
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 34 | | |
48 | 35 | | |
49 | 36 | | |
| |||
69 | 56 | | |
70 | 57 | | |
71 | 58 | | |
72 | | - | |
| 59 | + | |
73 | 60 | | |
74 | 61 | | |
75 | 62 | | |
| |||
0 commit comments