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 EDC87C64EC4 for ; Wed, 22 Feb 2023 07:27:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231183AbjBVH1J (ORCPT ); Wed, 22 Feb 2023 02:27:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjBVH1G (ORCPT ); Wed, 22 Feb 2023 02:27:06 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 252553668A; Tue, 21 Feb 2023 23:27:05 -0800 (PST) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PM74l0js5zrSSf; Wed, 22 Feb 2023 15:26:31 +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; Wed, 22 Feb 2023 15:27:02 +0800 From: Lu Wei To: , , , , , , Subject: [PATCH net,v4,0/2] Fix a fib6 info notification bug Date: Wed, 22 Feb 2023 16:36:27 +0800 Message-ID: <20230222083629.335683-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: dggems704-chm.china.huawei.com (10.3.19.181) 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 | 96 +++++++++++++++++++++++- 2 files changed, 101 insertions(+), 6 deletions(-) -- 2.31.1