From patchwork Thu Oct 9 09:21:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Maximets X-Patchwork-Id: 2147521 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=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4cj4D16MdMz1yHB for ; Thu, 9 Oct 2025 20:22:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 4178E83BC4; Thu, 9 Oct 2025 09:22:56 +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 KPZQdZFh0TXc; Thu, 9 Oct 2025 09:22:55 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2EE9180DE6 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 2EE9180DE6; Thu, 9 Oct 2025 09:22:55 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 126C6C060E; Thu, 9 Oct 2025 09:22:55 +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 53B09C060D for ; Thu, 9 Oct 2025 09:22:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3FDD080DE6 for ; Thu, 9 Oct 2025 09:22:53 +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 6fydCwAGovEw for ; Thu, 9 Oct 2025 09:22:52 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.66; helo=mail-wm1-f66.google.com; envelope-from=i.maximets.ovn@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 057168366E 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 057168366E Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by smtp1.osuosl.org (Postfix) with ESMTPS id 057168366E for ; Thu, 9 Oct 2025 09:22:51 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id 5b1f17b1804b1-46e504975dbso4400395e9.1 for ; Thu, 09 Oct 2025 02:22:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760001770; x=1760606570; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WQRDNX4AlYTH7bVCQDvCobL4vaTmu+ET3nevdtj1RAs=; b=tRRiDGEvpRy08DekkBEryBrGtaMNO9iVuA1KfnZwcFROT5fzesEhpx0AKPBHSHQJwO cbw9eMNWC8B9Yb7HYZ3unPJ4jxN5dkS0IhB5BzeSAsgnEilJM3rV48chebfdc55OWXZN XFuolcAPwTAAJXakkW01ZzbEuzbTcDDRg0JOPkqDATqvQNop4MGmOigfkWR0T+7WGYmX 1Pg5yqrDD4hSB+Oh1rhuWy700DlomazriZT/toBGDR/gZancdp4xunbp/MVbDyCm1Vpf WFe54MVsaBgsI7cMp7gwXWtJmH+7O205Aj/uLXIXfa/kg7Nx7PQLveV1Qtsu7yYDS6rc jWFA== X-Gm-Message-State: AOJu0YxtSZlBpLeDY9FJHuciQMKsPE/Pci358pduIDAV4wu07q9LAzjq wH/zKa0mpUiZo+XB5Pw8oN8DsPxbQL5lXHH6PxiyGc36PRO1WwZvS9M3p4QjdjOR X-Gm-Gg: ASbGncu0CC0ZN/wz+ncWDqrcDfj5jCkaaXncuHvzlULhTwfFcGUqWx3w7vlfYaIYcIN MQFeVyfBuAdTxfNUMLsMp11EycwiHcBqZ7H4tMNCkV1ft6udCFAWWezYB9ll7JhuY8unjQJgrIW cyAYA+aBjsvl5AcsUF3U3ZGb+4DWF6dEjuyV2eoBN5lq7zoWPf2B5mIxRZVykxuuD3r/Br8IsHp LhmQzTSvCjXX01NnXW+b2EZGy5w5Mya04Op/fWZhM2+mWXQeYsh+zcuCVtYC9GqF2CYUPRciyv0 nVP1l+YzfT3kgHBOFDvK7+8bO+WFIbwEO1sakIDq2JhX/M4Qhb/M/21dxVEYEL8cAdsAu99tKZx xTMnQ1gfBKBCEgK/WuBozoEoGUxm5+rK+SdjlAbm5QPijDPOtDOnfZK5L5bK0CVDKhXfwvDwrJY ZTMr6ejgUyM9c= X-Google-Smtp-Source: AGHT+IHKQX2BJ2B8vCmA3T+tr4q1xjLw8iJldD+g9IBvmZopGWdUIXevh48ebNKMU2pdQfsEWZiwAw== X-Received: by 2002:a05:600d:416a:b0:46e:3f75:da49 with SMTP id 5b1f17b1804b1-46fa9b11794mr39474295e9.37.1760001769581; Thu, 09 Oct 2025 02:22:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Oct 2025 02:22:49 -0700 (PDT) From: Ilya Maximets To: ovs-dev@openvswitch.org Cc: Ilya Maximets Date: Thu, 9 Oct 2025 11:21:20 +0200 Message-ID: <20251009092228.382349-1-i.maximets@ovn.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH 0/6] Build fixes for OVS on old distributions. 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" Fixing all the errors and warnings found while trying to build OVS on Ubuntu 14.04 and adding a CI job to cover this kind of setup to make sure it keeps working. This should cover most potential issues with older distributions that are still in use. We may consider raising the bar in the future and drop support for older compilers and kernels, but it should be done explicitly in one of the newer releases. As of today we claim support for pretty old versions, so we should try to honor that. Ilya Maximets (6): m4: Don't add -mno-avx512f if compiler doesn't support it. netlink: Fix build on kernels < 4.1 due to missing RTA_VIA. test-lib-route-table: Add missing RTPROT_BGP definition. test-netlink-policy: Fix missing field initializer warnings on older GCC. test-psample: Fix missing field initializer warnings on older GCC. github: Add a job to build on ubuntu-14.04. .github/workflows/build-and-test.yml | 39 ++++++++++++++++++++++++++++ acinclude.m4 | 7 +++++ lib/netlink.c | 14 ++-------- lib/route-table.c | 9 +++++++ m4/openvswitch.m4 | 7 +++-- tests/test-lib-route-table.c | 5 ++++ tests/test-netlink-policy.c | 15 ++++------- tests/test-psample.c | 3 ++- 8 files changed, 74 insertions(+), 25 deletions(-)