From patchwork Thu Oct 9 09:21:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Maximets X-Patchwork-Id: 2147525 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.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 4cj4D85HNyz1y1V for ; Thu, 9 Oct 2025 20:23:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0F9AE611FC; Thu, 9 Oct 2025 09:23:03 +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 JJWR_pfIaW65; Thu, 9 Oct 2025 09:23:01 +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 B4BCD611EF Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id B4BCD611EF; Thu, 9 Oct 2025 09:23:01 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A4207C060E; Thu, 9 Oct 2025 09:23:01 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id DE7A8C060D for ; Thu, 9 Oct 2025 09:22:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C091D83BDC for ; Thu, 9 Oct 2025 09:22:58 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id uxrASaF_hpR9 for ; Thu, 9 Oct 2025 09:22:57 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.65; helo=mail-wr1-f65.google.com; envelope-from=i.maximets.ovn@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 84B6483BCB Authentication-Results: smtp1.osuosl.org; dmarc=none (p=none dis=none) header.from=ovn.org DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 84B6483BCB Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by smtp1.osuosl.org (Postfix) with ESMTPS id 84B6483BCB for ; Thu, 9 Oct 2025 09:22:57 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id ffacd0b85a97d-42420c7de22so358851f8f.1 for ; Thu, 09 Oct 2025 02:22:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760001775; x=1760606575; 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=jGsvktoE/BEeBpPf5eQC/quHTZdtcwU9GnfB7uD00rs=; b=C0enZ6XX0hEN34OLPPEbRxOV11LGK981L9jnPs7UOIQZh0mw+Kb/QoF4uEDTSDRfTy LLWu35qctDprSzVjCL7ORbkQQpu3aEu60cnfaw/8/1CmRm1RAkc2B0HXvvArqdR0rAXx 5iysVNNUq6t1pKc3RxVQVSeFzW9P67iXRKlaxfA72n8NeP2DusBbbIzUJKfM/XXhM6JM zzZ9phI0yudRR4NbCjdzvjnEytjLZ86XpgHLChNIC5Qkw2wrFWebNOTlp552wDPHKo2R OT2qgktyg/RkvC34TZlWB4q124xPXFWC/jKRZok7Utb7Sgd/CCNZn/G6N9HwTKYFYxpD 155A== X-Gm-Message-State: AOJu0Yx9rhZn1URksLeRJ+4uOOkNZG15opvUaVyogNriRiiTQmACorP9 KrN2iWbMkyBr9OWhf64gOygI2s9ols9PFd/Alf4k7UZSoSjeH9Ku9VIvij/tQndp X-Gm-Gg: ASbGncuvaFxxqRhmm9Y+VFLggXX3hAZGAH17UKGeU14nlDED+G18Za/7w/dT9qhqLtc 1S/YdEFhaDRyGfO55F+2h94K7V46up+Mhx9hTmrgoKVM2aKziCDSEp8UyknSHfqVyRDtMvqYtbE MIuxVq0gVriHmhcpT1tuYAuqOPM6wSBzD2OVQ1u7NQwtgwk+pVQWyLdHXPve9+vbP+oz77Mo2JG 0HjqGukifrtIpW+DiNJAuo3z9WiXLuVVTNGqDU/8dFOAbMLlqcwXcvuMCvep+guhMvWZ06C94U0 b7PQu4eeroRcnDXckQpYKnmD0Op5kBXJjHDMeeCr/WLEVgKMmw7z002mQw9K5NdlmQFcXNNuvZ3 WI8gBjionk2yTtvAUFygH8yoQ55OcWTHaloQcJgTYqFyKI3A6nzaO0yoWvbIfATVYw3G9xBC3zy 4wLEYwODuHbO4= X-Google-Smtp-Source: AGHT+IH9Qo7qeqzoR5F+TiEi6I0QWr2/dYHZSuAoCyYuLPZh/9D0s3Y7dAZeM69WGKciLfuzyrvggA== X-Received: by 2002:a05:6000:4382:b0:424:21d8:de30 with SMTP id ffacd0b85a97d-4266e8e90eamr4404760f8f.62.1760001775324; Thu, 09 Oct 2025 02:22:55 -0700 (PDT) Received: from im-t490s.redhat.com (37-48-48-237.nat.epc.tmcz.cz. [37.48.48.237]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4255d8f0392sm34313629f8f.42.2025.10.09.02.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Oct 2025 02:22:55 -0700 (PDT) From: Ilya Maximets To: ovs-dev@openvswitch.org Cc: Ilya Maximets Date: Thu, 9 Oct 2025 11:21:23 +0200 Message-ID: <20251009092228.382349-4-i.maximets@ovn.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251009092228.382349-1-i.maximets@ovn.org> References: <20251009092228.382349-1-i.maximets@ovn.org> MIME-Version: 1.0 Subject: [ovs-dev] [PATCH 3/6] test-lib-route-table: Add missing RTPROT_BGP definition. 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: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" RTPROT_BGP was added in Linux v4.18. We should define it if it's not available, otherwise build fails on older kernels. Fixes: 91fc51106cfe ("route-table: Support parsing multipath routes.") Signed-off-by: Ilya Maximets Acked-by: Kevin Traynor Acked-by: Eelco Chaudron --- tests/test-lib-route-table.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-lib-route-table.c b/tests/test-lib-route-table.c index 4d4fbe0d3..4ba17826e 100644 --- a/tests/test-lib-route-table.c +++ b/tests/test-lib-route-table.c @@ -33,6 +33,11 @@ #define RTPROT_OVN 84 #endif +/* Definition was added in Linux v4.18. */ +#ifndef RTPROT_BGP +#define RTPROT_BGP 186 +#endif + static char * rt_prot_name(unsigned char p) {