From patchwork Mon Feb 26 22:58:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13572993 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE1C71E878 for ; Mon, 26 Feb 2024 22:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708988295; cv=none; b=ZFPM7+R6bCqhIZzccGKDOiyOCStF8Yqxdp5D1BU294NOubux94Kv/VbLaDIkE1b/8PdrR4xm78bebQDgEcTvUO821+3M0i2bkWMliFz4hknd/xusPz2pRKE6S3hQx2L0fPSFCm2IMoTHrIsUPPGtEIgOTcfxGPkOwFISLGYVHVc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708988295; c=relaxed/simple; bh=k2sGkS9JPLzUg8YsQYsM6SmvSUEI6/EqGZcoIPL8DGE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sparFURLVDiGf3hZ7vleox7rKGq2oW8NpQX6h9W2fUmL/8ccObNqWFuS8dKSbm8PAdHlIOUu8scnTiGydb7z80C/ZdHMIZOA0KtDJii0GlQ80WdKoKDaVbfm21ozp3aTyP/a+4/CV5sy6btIejmIcn9MKcv9iGVidOq2DggPfWo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Em/lZyZP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Em/lZyZP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47A08C433F1; Mon, 26 Feb 2024 22:58:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708988294; bh=k2sGkS9JPLzUg8YsQYsM6SmvSUEI6/EqGZcoIPL8DGE=; h=From:To:Cc:Subject:Date:From; b=Em/lZyZPNjbJVAsU84JduEkmMrUHhOyZZyALZ0Kb3RHZS2fx5i2cwui5/bJVjc1Ce YxiDIfEPF0P3f/IB4iKjyN3AzkRfF6H3nVDtJxIGxlnlDAVdvr5RJHv+bSSXfAnhl4 YKDkbXxa/22A8y1dHlq0rnpOig8V5T43/NXsTpObWjsgp1Xt/oq3K5YoP86TXWL6ve jQD0jQaTzZXX02/a6a7fGVxycvDG3pj6TiRNBJQXtKC+vRwlzIJLKBGRC+SF1NYKIw YW7zpM6FOh9Deom1DKZqxKnLM+InhsM+vvxDVeuXYQmb1L2fDzb9ahm37CO4RB/rmG sfxPBbLG9R6Rg== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, jiri@resnulli.us, Jakub Kicinski Subject: [PATCH net-next] tools: ynl: protect from old OvS headers Date: Mon, 26 Feb 2024 14:58:06 -0800 Message-ID: <20240226225806.1301152-1-kuba@kernel.org> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Since commit 7c59c9c8f202 ("tools: ynl: generate code for ovs families") we need relatively recent OvS headers to get YNL to compile. Add the direct include workaround to fix compilation on less up-to-date OSes like CentOS 9. Signed-off-by: Jakub Kicinski Reviewed-by: Donald Hunter --- tools/net/ynl/Makefile.deps | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/net/ynl/Makefile.deps b/tools/net/ynl/Makefile.deps index 7dcec16da509..07373c5a7afe 100644 --- a/tools/net/ynl/Makefile.deps +++ b/tools/net/ynl/Makefile.deps @@ -21,3 +21,6 @@ CFLAGS_handshake:=$(call get_hdr_inc,_LINUX_HANDSHAKE_H,handshake.h) CFLAGS_mptcp_pm:=$(call get_hdr_inc,_LINUX_MPTCP_PM_H,mptcp_pm.h) CFLAGS_netdev:=$(call get_hdr_inc,_LINUX_NETDEV_H,netdev.h) CFLAGS_nfsd:=$(call get_hdr_inc,_LINUX_NFSD_NETLINK_H,nfsd_netlink.h) +CFLAGS_ovs_datapath:=$(call get_hdr_inc,__LINUX_OPENVSWITCH_H,openvswitch.h) +CFLAGS_ovs_flow:=$(call get_hdr_inc,__LINUX_OPENVSWITCH_H,openvswitch.h) +CFLAGS_ovs_vport:=$(call get_hdr_inc,__LINUX_OPENVSWITCH_H,openvswitch.h)