Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2714C61DA4 for ; Thu, 16 Feb 2023 03:16:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbjBPDQ4 (ORCPT ); Wed, 15 Feb 2023 22:16:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjBPDQy (ORCPT ); Wed, 15 Feb 2023 22:16:54 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D598736473; Wed, 15 Feb 2023 19:16:53 -0800 (PST) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PHKmT49bJzRs0w; Thu, 16 Feb 2023 11:14:17 +0800 (CST) Received: from huawei.com (10.175.101.6) by kwepemi500015.china.huawei.com (7.221.188.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 16 Feb 2023 11:16:51 +0800 From: Lu Wei To: , , , , , , Subject: [PATCH net,v2,0/2] Fix a fib6 info notification bug Date: Thu, 16 Feb 2023 12:26:22 +0800 Message-ID: <20230216042624.4069910-1-luwei32@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500015.china.huawei.com (7.221.188.92) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set fixes a length calculation bug in fib6 info notification and adds two testcases. The test reult is listed as follows: before the fix patch: Fib6 info length calculation in route notify test TEST: ipv6 route add notify [FAIL] Fib4 info length calculation in route notify test TEST: ipv4 route add notify [ OK ] after the fix patch: Fib6 info length calculation in route notify test TEST: ipv6 route add notify [ OK ] Fib4 info length calculation in route notify test TEST: ipv4 route add notify [ OK ] Lu Wei (2): ipv6: Add lwtunnel encap size of all siblings in nexthop calculation selftests: fib_tests: Add test cases for IPv4/IPv6 in route notify net/ipv6/route.c | 11 +-- tools/testing/selftests/net/fib_tests.sh | 92 +++++++++++++++++++++++- 2 files changed, 97 insertions(+), 6 deletions(-) -- 2.31.1