From patchwork Fri Aug 4 07:37:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Kuohai X-Patchwork-Id: 13341367 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5536A6ADF; Fri, 4 Aug 2023 07:16:37 +0000 (UTC) Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87E623588; Fri, 4 Aug 2023 00:16:35 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4RHH7w4vTMz4f3jMm; Fri, 4 Aug 2023 15:16:28 +0800 (CST) Received: from k01.huawei.com (unknown [10.67.174.197]) by APP2 (Coremail) with SMTP id Syh0CgAHF+jMpcxkm1vaPQ--.64994S2; Fri, 04 Aug 2023 15:16:29 +0800 (CST) From: Xu Kuohai To: bpf@vger.kernel.org, netdev@vger.kernel.org, John Fastabend , Bobby Eshleman Cc: Jakub Sitnicki , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Daniel Borkmann , Alexei Starovoitov , Cong Wang Subject: [PATCH bpf v3 0/4] bug fixes for sockmap Date: Fri, 4 Aug 2023 03:37:36 -0400 Message-Id: <20230804073740.194770-1-xukuohai@huaweicloud.com> X-Mailer: git-send-email 2.30.2 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: Syh0CgAHF+jMpcxkm1vaPQ--.64994S2 X-Coremail-Antispam: 1UD129KBjvdXoWruFyfJryDtr1rZrWfGF4Uurg_yoWftFg_uw 4UKr95Xr1xXFnxGFWruFs3JFWkKFZ7Jr1rA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E,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: bpf@iogearbox.net From: Xu Kuohai bug fixes and a new test case for sockmap. v3: fix bpf ci failure v2: https://lore.kernel.org/bpf/20230803064838.108784-1-xukuohai@huaweicloud.com add a test case v1: https://lore.kernel.org/bpf/20230728105649.3978774-1-xukuohai@huaweicloud.com https://lore.kernel.org/bpf/20230728105717.3978849-1-xukuohai@huaweicloud.com Xu Kuohai (4): bpf, sockmap: Fix map type error in sock_map_del_link bpf, sockmap: Fix bug that strp_done cannot be called selftests/bpf: fix a CI failure caused by vsock sockmap test selftests/bpf: Add sockmap test for redirecting partial skb data include/linux/skmsg.h | 1 + net/core/skmsg.c | 10 ++- net/core/sock_map.c | 10 +-- .../selftests/bpf/prog_tests/sockmap_listen.c | 74 ++++++++++++++++++- .../selftests/bpf/progs/test_sockmap_listen.c | 14 ++++ 5 files changed, 101 insertions(+), 8 deletions(-)