From patchwork Tue Aug 20 13:36:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1974433 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=WOx2poVP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wp9Vn6qlxz1yXZ for ; Tue, 20 Aug 2024 23:37:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 3E99D60A9D; Tue, 20 Aug 2024 13:37:04 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2R7nhoST6OAv; Tue, 20 Aug 2024 13:37:02 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.9.56; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 54F1D60A92 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=WOx2poVP Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 54F1D60A92; Tue, 20 Aug 2024 13:37:02 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0FD82C1029; Tue, 20 Aug 2024 13:37:02 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0E8BFC1029 for ; Tue, 20 Aug 2024 13:37:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2463260A70 for ; Tue, 20 Aug 2024 13:36:57 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Gb-gRa1UuWMF for ; Tue, 20 Aug 2024 13:36:55 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=lorenzo.bianconi@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 397FD60A9D Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 397FD60A9D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 397FD60A9D for ; Tue, 20 Aug 2024 13:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724161013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kDyzcLPL+d1K5yfRE12yBb6A+YBlYCBAxfks1/zB0nY=; b=WOx2poVPyrYSyJYEBX31K/h5zVJPcbt9w0bUhvY8RKYAicpsXykG8ut2fB6Z3UdA6UeHSz Fcl/fQ9gAam68RpL7io/FTCVccaKAEFuXPm8Jf+VrY2ExpeiXUU15Q/qDW9vrgMzPS49Lp 1WPA2a91iVnrmbner/XDmjqzpe8O+tM= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-269-TDMmsddWOjeHVJ2AzycK4Q-1; Tue, 20 Aug 2024 09:36:52 -0400 X-MC-Unique: TDMmsddWOjeHVJ2AzycK4Q-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a7a83f54fdeso474409966b.0 for ; Tue, 20 Aug 2024 06:36:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724161007; x=1724765807; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kDyzcLPL+d1K5yfRE12yBb6A+YBlYCBAxfks1/zB0nY=; b=Fugq+QZm5ZO8MMK8lQgKB4SaLqvKF8S3fH4lsr/lg4d3UoKKT+88+CjeoQwloj+AX5 wtsj0KFpwrPp/od1kNhpQ8kW1EgPmbnro77j5y/a+pwWAgg+n/2Lc0OyVB4cA/W1R60I 5rDVmk8DW3w+8HRFfmKivIAl5imqy33wRYL4JoGYac7ZuLPqXPUtigd/QOG99ftVyb7Z v97bgrv89Ylfqe44HqYTGj4JvAut7T6foX0wBvV2FVe0oq/ARFHEadAlNOFztJwM6rkT KOynqd5wWZilRd22h5jfSNZO7VwYNQyDqJDKk7WwnMAdQbNi9wd93hEvDQDy9HsMHrR+ uKtw== X-Gm-Message-State: AOJu0YxYTcorRFF/ATrQCXP8VcD7wn0kjIXGpO//Ac+8ekM4b+C+yLIj uxtVSh9E4zBH6HVpU/zVSBCsTW6ySiGC5636qUmJQK3tkeC3S9vv+TA75nRrdEn/MYvDKwZ0vOg AxFNAkRt4ThI4pwBr969/B39XUUDGZ5iPXOl6XTPyi5l4AD83IJrmxvz0b32WNjIyLf1uTCcWOe khe4qXBfVQfTfbgWyk1J5bnCPIhzU7JrXCr3Dyl/N+roE/6lsZxg== X-Received: by 2002:a17:907:e87:b0:a7a:af5d:f313 with SMTP id a640c23a62f3a-a83928d438bmr1016123466b.22.1724161007453; Tue, 20 Aug 2024 06:36:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvgoM9Vju9CZZekH1JhHnJve7YNX9RLr5OeyFyUlGuVHjmGWfIrxV8+8p/4bSPEUsJ4yte5Q== X-Received: by 2002:a17:907:e87:b0:a7a:af5d:f313 with SMTP id a640c23a62f3a-a83928d438bmr1016120966b.22.1724161007014; Tue, 20 Aug 2024 06:36:47 -0700 (PDT) Received: from localhost (net-188-152-77-192.cust.dsl.teletu.it. [188.152.77.192]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8383949e45sm769578166b.145.2024.08.20.06.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 06:36:46 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Tue, 20 Aug 2024 15:36:25 +0200 Message-ID: <0f6f079f3770b21df77854e85b00a49f9a729c96.1724157801.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn 4/4] northd: Make bfd_connections static in build_parsed_routes. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dceara@redhat.com Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Make hamp bfd_connections pointer static in build_parsed_routes and parsed_routes_add routines since it is used just as input. Signed-off-by: Lorenzo Bianconi --- northd/northd.c | 4 ++-- northd/northd.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/northd/northd.c b/northd/northd.c index c7bf09ad6..1f71e07dc 100644 --- a/northd/northd.c +++ b/northd/northd.c @@ -11113,7 +11113,7 @@ parsed_route_lookup(struct hmap *routes, size_t hash, static void parsed_routes_add(struct ovn_datapath *od, const struct hmap *lr_ports, const struct nbrec_logical_router_static_route *route, - struct hmap *bfd_connections, + const struct hmap *bfd_connections, struct hmap *routes, struct simap *route_tables, struct hmap *bfd_active_connections) { @@ -11226,7 +11226,7 @@ parsed_routes_add(struct ovn_datapath *od, const struct hmap *lr_ports, void build_parsed_routes(struct ovn_datapath *od, const struct hmap *lr_ports, - struct hmap *bfd_connections, struct hmap *routes, + const struct hmap *bfd_connections, struct hmap *routes, struct simap *route_tables, struct hmap *bfd_active_connections) { diff --git a/northd/northd.h b/northd/northd.h index 62e22edc1..a4971e336 100644 --- a/northd/northd.h +++ b/northd/northd.h @@ -738,7 +738,7 @@ void northd_indices_create(struct northd_data *data, void route_policies_init(struct route_policies_data *); void route_policies_destroy(struct route_policies_data *); void build_parsed_routes(struct ovn_datapath *, const struct hmap *, - struct hmap *, struct hmap *, struct simap *, + const struct hmap *, struct hmap *, struct simap *, struct hmap *); uint32_t get_route_table_id(struct simap *, const char *); void static_routes_init(struct static_routes_data *);