From patchwork Tue Apr 5 10:16:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng Li X-Patchwork-Id: 1613355 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KXk9941tgz9sCD for ; Tue, 5 Apr 2022 20:17:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 03869824E2; Tue, 5 Apr 2022 10:17:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1FmKhjJYVeyr; Tue, 5 Apr 2022 10:17:25 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3458F82468; Tue, 5 Apr 2022 10:17:24 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0E81EC001D; Tue, 5 Apr 2022 10:17:24 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id B2B2FC0012 for ; Tue, 5 Apr 2022 10:17:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8B56B824B4 for ; Tue, 5 Apr 2022 10:17:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Iu9J2L5xM1yF for ; Tue, 5 Apr 2022 10:17:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.227]) by smtp1.osuosl.org (Postfix) with ESMTP id 10D648247F for ; Tue, 5 Apr 2022 10:17:19 +0000 (UTC) HMM_SOURCE_IP: 172.18.0.188:44128.524426405 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-110.188.55.93 (unknown [172.18.0.188]) by chinatelecom.cn (HERMES) with SMTP id 2B8E728008D; Tue, 5 Apr 2022 18:17:12 +0800 (CST) X-189-SAVE-TO-SEND: +lic121@chinatelecom.cn Received: from ([172.18.0.188]) by app0023 with ESMTP id 5f7ded7bfd204f968d665ea94165be4e for dev@openvswitch.org; Tue, 05 Apr 2022 18:17:14 CST X-Transaction-ID: 5f7ded7bfd204f968d665ea94165be4e X-Real-From: lic121@chinatelecom.cn X-Receive-IP: 172.18.0.188 X-MEDUSA-Status: 0 From: lic121 To: dev Date: Tue, 5 Apr 2022 10:16:57 +0000 Message-Id: X-Mailer: git-send-email 1.8.3.1 Subject: [ovs-dev] [PATCH 0/2] fix revalidation triggers X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" This series fix two revalidation triggers: - trigger revalidation if ct_zone timeout policy changes - avoid revalidation if lldp config doesn't change The second patch relies on the first one because of ct test cases lic121 (2): ofproto-dpif: trigger revalidate if ct tp changes ofproto-dpif: avoid unneccesary backer revalidation lib/lldp/lldpd.c | 10 +++------- lib/ovs-lldp.c | 8 ++++++++ lib/ovs-lldp.h | 1 + ofproto/ofproto-dpif.c | 10 ++++++++-- tests/ofproto-dpif.at | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 9 deletions(-)