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 F22E0C636D6 for ; Wed, 22 Feb 2023 03:11:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231796AbjBVDLc (ORCPT ); Tue, 21 Feb 2023 22:11:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjBVDLa (ORCPT ); Tue, 21 Feb 2023 22:11:30 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8B3C2CFCA; Tue, 21 Feb 2023 19:11:26 -0800 (PST) Received: from kwepemi500015.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PM1Pn040vzrSLb; Wed, 22 Feb 2023 11:10:52 +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 11:11:23 +0800 From: Lu Wei To: , , , , , , Subject: [PATCH net,v3,0/2] Fix a fib6 info notification bug Date: Wed, 22 Feb 2023 12:20:49 +0800 Message-ID: <20230222042051.325307-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 | 97 +++++++++++++++++++++++- 2 files changed, 102 insertions(+), 6 deletions(-) -- 2.31.1