[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6172d739dfbbe_82a7f2083b@john-XPS-13-9370.notmuch>
Date: Fri, 22 Oct 2021 08:22:33 -0700
From: John Fastabend <john.fastabend@...il.com>
To: Liu Jian <liujian56@...wei.com>, john.fastabend@...il.com,
daniel@...earbox.net, jakub@...udflare.com, lmb@...udflare.com,
davem@...emloft.net, kuba@...nel.org, ast@...nel.org,
andrii@...nel.org, kafai@...com, songliubraving@...com, yhs@...com,
kpsingh@...nel.org, netdev@...r.kernel.org, bpf@...r.kernel.org,
xiyou.wangcong@...il.com
Cc: liujian56@...wei.com
Subject: RE: [PATHC bpf v5 2/3] selftests, bpf: Fix test_txmsg_ingress_parser
error
Liu Jian wrote:
> After "skmsg: lose offset info in sk_psock_skb_ingress", the test case
> with ktls failed. This because ktls parser(tls_read_size) return value
> is 285 not 256.
>
> the case like this:
> tls_sk1 --> redir_sk --> tls_sk2
> tls_sk1 sent out 512 bytes data, after tls related processing redir_sk
> recved 570 btyes data, and redirect 512 (skb_use_parser) bytes data to
> tls_sk2; but tls_sk2 needs 285 * 2 bytes data, receive timeout occurred.
>
> Signed-off-by: Liu Jian <liujian56@...wei.com>
> ---
> tools/testing/selftests/bpf/test_sockmap.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/testing/selftests/bpf/test_sockmap.c b/tools/testing/selftests/bpf/test_sockmap.c
> index eefd445b96fc..06924917ad77 100644
> --- a/tools/testing/selftests/bpf/test_sockmap.c
> +++ b/tools/testing/selftests/bpf/test_sockmap.c
> @@ -1680,6 +1680,8 @@ static void test_txmsg_ingress_parser(int cgrp, struct sockmap_options *opt)
> {
> txmsg_pass = 1;
> skb_use_parser = 512;
> + if (ktls == 1)
> + skb_use_parser = 570;
> opt->iov_length = 256;
> opt->iov_count = 1;
> opt->rate = 2;
> --
> 2.17.1
>
Hi Liu LGTM sorry about the delay there I thought I acked this already, but
guess now.
Acked-by: John Fastabend <john.fastabend@...il.com>
Powered by blists - more mailing lists