From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: yszhou4tech@gmail.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 8a6dc06a for ; Mon, 30 Jul 2018 03:17:53 +0000 (UTC) Received: from mail-yw0-x230.google.com (mail-yw0-x230.google.com [IPv6:2607:f8b0:4002:c05::230]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 88ea8ce6 for ; Mon, 30 Jul 2018 03:17:53 +0000 (UTC) Received: by mail-yw0-x230.google.com with SMTP id v197-v6so3873664ywg.3 for ; Sun, 29 Jul 2018 20:27:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yousong Zhou Date: Mon, 30 Jul 2018 11:27:34 +0800 Message-ID: Subject: Re: compilation error on centos 7 kernels To: WireGuard mailing list Content-Type: text/plain; charset="UTF-8" List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 30 Jul 2018 at 11:26, Yousong Zhou wrote: > > Yesterday I tried compiling openvswitch-dkms on 2 centos 7 systems, > both failed out of box because of the compat conditional compilation > code > Forgot to mention that the openvswitch-dkms version in use is 0.0.20180718 yousong > Both system has LINUX_VERSION_CODE 199168, i.e. 3.10.0. The 1st runs > kernel 3.10.0-514.26.2.el7.x86_64, and the second runs > 3.10.0-693.2.2.el7.x86_64. They both lacks skb_reset_tc, > our_pskb_put(), genl_family_attrbuf(), skb_put_data(). And the > 3.10.0-514 kernel also lacks ipv6_mod_enabled() so I had to prepare > different dkms patches for them ;( . The bright side is that currently > both systems work fine ;) > > It's partially caused by commit 401453 ("compat: handle RHEL 7.5's > recent backports"), but I think the code will be very hard to read and > maintain if we continue to use the current macro detection logic. I > remembered openvswitch linux kernel datapath module was already in > such an state. Maybe compile test will do better. > > yousong