* [PATCH bpf-next] test: selftests: remove unused various in sockmap_verdict_prog.c
@ 2022-01-13 3:16 menglong8.dong
2022-01-13 17:07 ` Song Liu
2022-01-15 1:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: menglong8.dong @ 2022-01-13 3:16 UTC (permalink / raw)
To: shuah
Cc: ast, daniel, andrii, kafai, songliubraving, yhs, john.fastabend,
kpsingh, davemarchevsky, linux-kselftest, netdev, bpf,
linux-kernel, imagedong
From: Menglong Dong <imagedong@tencent.com>
'lport' and 'rport' in bpf_prog1() of sockmap_verdict_prog.c is not
used, just remove them.
Signed-off-by: Menglong Dong <imagedong@tencent.com>
---
tools/testing/selftests/bpf/progs/sockmap_parse_prog.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c b/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
index 95d5b941bc1f..c9abfe3a11af 100644
--- a/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
+++ b/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
@@ -7,8 +7,6 @@ int bpf_prog1(struct __sk_buff *skb)
{
void *data_end = (void *)(long) skb->data_end;
void *data = (void *)(long) skb->data;
- __u32 lport = skb->local_port;
- __u32 rport = skb->remote_port;
__u8 *d = data;
int err;
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] test: selftests: remove unused various in sockmap_verdict_prog.c
2022-01-13 3:16 [PATCH bpf-next] test: selftests: remove unused various in sockmap_verdict_prog.c menglong8.dong
@ 2022-01-13 17:07 ` Song Liu
2022-01-15 1:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Song Liu @ 2022-01-13 17:07 UTC (permalink / raw)
To: menglong8.dong
Cc: Shuah Khan, Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
KP Singh, davemarchevsky, linux-kselftest, Networking, bpf,
open list, imagedong
On Wed, Jan 12, 2022 at 7:17 PM <menglong8.dong@gmail.com> wrote:
>
> From: Menglong Dong <imagedong@tencent.com>
>
> 'lport' and 'rport' in bpf_prog1() of sockmap_verdict_prog.c is not
> used, just remove them.
>
> Signed-off-by: Menglong Dong <imagedong@tencent.com>
Acked-by: Song Liu <songliubraving@fb.com>
> ---
> tools/testing/selftests/bpf/progs/sockmap_parse_prog.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c b/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
> index 95d5b941bc1f..c9abfe3a11af 100644
> --- a/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
> +++ b/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
> @@ -7,8 +7,6 @@ int bpf_prog1(struct __sk_buff *skb)
> {
> void *data_end = (void *)(long) skb->data_end;
> void *data = (void *)(long) skb->data;
> - __u32 lport = skb->local_port;
> - __u32 rport = skb->remote_port;
> __u8 *d = data;
> int err;
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] test: selftests: remove unused various in sockmap_verdict_prog.c
2022-01-13 3:16 [PATCH bpf-next] test: selftests: remove unused various in sockmap_verdict_prog.c menglong8.dong
2022-01-13 17:07 ` Song Liu
@ 2022-01-15 1:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-01-15 1:30 UTC (permalink / raw)
To: Menglong Dong
Cc: shuah, ast, daniel, andrii, kafai, songliubraving, yhs,
john.fastabend, kpsingh, davemarchevsky, linux-kselftest, netdev,
bpf, linux-kernel, imagedong
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Thu, 13 Jan 2022 11:16:58 +0800 you wrote:
> From: Menglong Dong <imagedong@tencent.com>
>
> 'lport' and 'rport' in bpf_prog1() of sockmap_verdict_prog.c is not
> used, just remove them.
>
> Signed-off-by: Menglong Dong <imagedong@tencent.com>
>
> [...]
Here is the summary with links:
- [bpf-next] test: selftests: remove unused various in sockmap_verdict_prog.c
https://git.kernel.org/bpf/bpf-next/c/e80f2a0d1946
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-15 1:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 3:16 [PATCH bpf-next] test: selftests: remove unused various in sockmap_verdict_prog.c menglong8.dong
2022-01-13 17:07 ` Song Liu
2022-01-15 1:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).