From patchwork Thu Feb 16 04:26:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Wei X-Patchwork-Id: 5485 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp80342wrn; Wed, 15 Feb 2023 19:22:40 -0800 (PST) X-Google-Smtp-Source: AK7set/ipeVPyicOn5hgq6aHs8BK1Wqlngu57v9r3GXzwY56haRVc4p7TlwB5HafOY67QLBgUiSG X-Received: by 2002:aa7:db53:0:b0:46f:a6ea:202 with SMTP id n19-20020aa7db53000000b0046fa6ea0202mr5147857edt.37.1676517759983; Wed, 15 Feb 2023 19:22:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676517759; cv=none; d=google.com; s=arc-20160816; b=n7Wl5AzN4i3cATSckimLdnrVuapM+J3g7w6g35+pc+SyOnGAlbnMyknwIWpbZo7rua QH2/1rANf69+fJD+dEmWRrRWy7pa9ZvNBVIRzwxU6h+g8PK21lvddUR69qyKXH6XomZe l3DwGDk/Jva/L3mofqybViIQWGCn6PX+jM1lJaSTQTNcVZkVlYa1JPqCiqgHA94PRk/W GSas+lFstqwHqbCqVbuHcUySEGSzFKTynKsz2uaW6jxS49FjzFjlM7zma6KkHJVYY1UF Kf4IhcpsQDeTbFjSSrx9nCzNtglCJb3PEzDActqRNC1nc34FLl3i2ozlsHT4DIcem2cK 5PMg== 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=MBO1N1uYkCfClbDnJnkWVU3cOWw9LPJhO/LACogGqKA=; b=p79lL/Uz2Z1DBDyNwKJNfYsHMdyPTC/EqyCW6T2tdiA6ExjNjgFAZsCHhQiqJCNhwo 1J3J8Nbr4JeyBoPrQxE9yd3WZCMBnXDEmLICjYfqkM8sIFKVgGUeR8KYZ/iZ1HqbDClf f/Fvo6KsKdljVKKCO2EpVbcNprJi5HKcu+r1uuCP+Fbr5uxhbd5kSdf9kJZxEpZr5nz6 t4t1vXpEhnJ2cdvi4erORyNX7+jVmRGdAKT3CWrj0Xb6HLqSjDud4/9V/uVDruXGXlxc oI+bux16m7ApYPXP7/Yft5MYTxwtAZvMBXiQaj+pXNAS9vsrcozNBROhUrzobTNucKeZ ABTg== 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 r18-20020aa7d592000000b004acbdaf456fsi752405edq.291.2023.02.15.19.22.16; Wed, 15 Feb 2023 19:22:39 -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 S229725AbjBPDQ4 (ORCPT + 99 others); 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 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 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?1757956134784492447?= X-GMAIL-MSGID: =?utf-8?q?1757956286635514505?= 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(-)