From patchwork Wed Feb 22 08:36:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Wei X-Patchwork-Id: 5719 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp437269wrd; Tue, 21 Feb 2023 23:36:27 -0800 (PST) X-Google-Smtp-Source: AK7set/rGGza3TM4Y7sijEAx52wxPCvoltgt7E0JOH7Ycwc24sdjv4iEd1T/XuLZ+mBT6CL7+0Sq X-Received: by 2002:aa7:ce14:0:b0:4ac:bbb4:9772 with SMTP id d20-20020aa7ce14000000b004acbbb49772mr6806574edv.40.1677051387190; Tue, 21 Feb 2023 23:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677051387; cv=none; d=google.com; s=arc-20160816; b=QOhQqPVAUMBJhni0em4+EG18yt1/VoZ+uQsubjkx7ecP0L2hA4LqdosGsp4L8a6xVo ip6SZthbai6WbX8PVRK1vt1khXMl4CdXYcLmbwG/57cHL/XopKIRwof4HRH7wgENuz6G vw8w8dmMqUG5rwsngkM010xRUDi07uLkrtp4LV5PvFE73qA6sdgXjFXPoRFvXUwp79Zg blLt/Zd6MDDXZE8pGu2dqAemOvUlgj9QjuEtpZPGjxItQhyYwLo2+7gr3xRDiyVaWoc2 oy89HBLtWKo2/hepQk9R82xpgXyJZpafcw245145eO7wnqJYUFC7a8QYXe9YnLdo+1Ca DEaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=nSOEm15ttNfCHmCh59EAadBJzVDKBey+kH7Cyq302EQ=; b=XozplS7XgHuIk8l/hqmgB2C2sto/C+MLf3a85Thom7Ku0CFPeFRQSs5Gp9tgeCp7iI uXTfxZda3yV4zz/4N6SsA30uasD1NJ7Z86KPW7n7f57zXKtZKAz+biEEEiYuXNhsYWfy ixAoRWRWXmwyml3FRDsgkY0xOtl44lIXzFiv/C1LnlaRqUB9fwkriZGH+rytk6HIjtD1 pwV52G38FLyuqUh3VTLznhY51e7qKQYu9YUWGHbLR5KImTC6gMPQ/5yeynH1lDOVzt7j JnIKeCaQLRjUS0Y4NC7uTDQGE8lz0IxZTl7+uehaqjOQefKZOUdTd2zBIq35GT6UDQzt xdyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020aa7c901000000b004aeeae11454si5534042edt.140.2023.02.21.23.36.04; Tue, 21 Feb 2023 23:36:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231178AbjBVH1I (ORCPT + 99 others); Wed, 22 Feb 2023 02:27:08 -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 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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758499200001729276?= X-GMAIL-MSGID: =?utf-8?q?1758515835254883090?= 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(-)