Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp533191lqr; Wed, 5 Jun 2024 13:06:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4jM28ndmMIGC8WY7yfLJqA8tBv6/Bt98rzRRxWYl11Z/sggrde9M4A+/tRtP2ol9aNdW2VlOGgkS+SWoqkpiBftE7Au0yHU3zxCJndQ== X-Google-Smtp-Source: AGHT+IEv9cJoGzT6tQrJdQKCcbxk1nQupJgDP7IuGC6jIwOzkRRBQExVnesaKnbVvyw/FU+w44aZ X-Received: by 2002:ac2:47ed:0:b0:52b:a5bb:12f3 with SMTP id 2adb3069b0e04-52bab4f6ff2mr1930295e87.44.1717617977798; Wed, 05 Jun 2024 13:06:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717617977; cv=pass; d=google.com; s=arc-20160816; b=mfzG6jvyoq+T2DmCYdAF2qK4q++eAy3Rggf2DNF+UIaDXcAxI8zVqejJZpTCV5NR+e Qw/u174JJiX8ZE48mjb22LDqtOfYGlsPA8mlJL7wiy5FbymgQBKEFEL8L+dmSbpLbKEW Xu0saPS8RbPx6zzvLRnHeXwnFifOKzrAM1zKGuAwloTkjMe/0VUTbDt5dxg9Ls9rLszJ Nrw90KCbEHOIjfaJfJBx2gw8ZtRzBCaoZoYovzgF4waJCfcNasomoKGQitAoKfW0n1JH meA1HFzQbROgsIeoKIASkJ+0+zspkxxcb04Ne6sUHdgPwOndT9nJB+VgeRE0uqY2CL6h 4kXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AWKDjsdULaCYK5AwSzuBjlloFK5eRx7kXQoD7ZHaKE4=; fh=WQtmA2jj4EW4R4t/BzV9pXYIpAAzRnkD4luUnLjMZzI=; b=Hba1yQrGN6e/gdiOrphwPm3kXbVcdB4WXsek4synF/s9sBzIr+nyXkEPR3nrZhXdo6 8cNo7DHk/Z3LwptlbTn93w8/svaf1lzAHRZswXyt2wOneuwf+WrfunnL+TccHVKgGwrT I0E6kS2OXf71Kv/H9jpX5fQQSWBW7OoGMTG6Bav4jyX6fTcpxthjT4/5WoZCGWcUDyZm 3GxNukALPQnxToRv82IejiHNhbUlE3uHSPaRYdoBMarwLwmDWyxRwjfJSk6IIY8qvGjx w0lVMk2hTvNPQTkoP2fML7DpplPLU0ieKFLUQR0ppYVTrGkiUbjKuyBM7ymXBxn3SUx1 iJNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LjlnSwCZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a695d9fdd29si209888966b.961.2024.06.05.13.06.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:06:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LjlnSwCZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 76D451F21D4F for ; Wed, 5 Jun 2024 20:06:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62BE1157A55; Wed, 5 Jun 2024 20:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LjlnSwCZ" 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 7C6A5155356; Wed, 5 Jun 2024 20:06:08 +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=1717617968; cv=none; b=VNhZFshvSU1yDi/yrH7Z7tNemStU0LO/Hc1aiPKBJmlLdVvRTGE7suutIFsD3X6+2kX/c8LSYeqSAqaFbi4fPHI98kt6Dq+6C6EygagDtvnqWaggfvaK1TVkay1Ikycm0TaVKKtD4h+adLI6Or8AE2VQ/LWc5RKWGck7JZhSG3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717617968; c=relaxed/simple; bh=tcIV154yjEx+jZi6w1gwf86t72QgsTXPe1vDfXnptNM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sbhRV1m3+S0srhXvnOei6wjfjWekFNbLlfa0wCUHd3D2yd1oRR2+Oo8thOIikRrYQr24Ag5mNlhKfToUWv6uzitw0TpJqDN7gb+DbuX7avs9gK0Z9gm80H5ZLQC+9BGv13EmoMdGLEZyRP0vO+BwpEJ3mxXm607XYIdWkpDdw4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LjlnSwCZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC328C2BD11; Wed, 5 Jun 2024 20:06:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717617968; bh=tcIV154yjEx+jZi6w1gwf86t72QgsTXPe1vDfXnptNM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LjlnSwCZ3QBn+iv6bMHUH81hwuZF4ddVoebpRp3oNUHaWIyj5D7tXJ5us/UaGcwQu 3dWqyQbno52GB0lf1+Y+PQvumgnJ2zb+Mj0nK3is/r37UiFc6PFD++cG7isW0GdaBM M1Mo51dyfbb2qxEXDRlCAxvG+EJW9e5L3Dqvl+S/S3tCUdhcy5oM9R0+yq58dOXa8t SCVWiByboBeyJkjHWQtBMtt/izj/vt+PSgEDX/8rUW+h9v5gxYXdfFIVbcbMdXfnzF Xl4NuCMELC8BzSMsxsh9gbF7TlZ9JWFbahEVfq9MitPIV78rcDIHurx7ebWSeVKFiD BzB/piWdTbFlg== Date: Wed, 5 Jun 2024 21:06:02 +0100 From: Simon Horman To: =?utf-8?Q?Adri=C3=A1n?= Moreno Cc: kernel test robot , netdev@vger.kernel.org, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, aconole@redhat.com, echaudro@redhat.com, i.maximets@ovn.org, dev@openvswitch.org, Donald Hunter , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Pravin B Shelar , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 5/9] net: openvswitch: add emit_sample action Message-ID: <20240605200602.GB791188@kernel.org> References: <20240603185647.2310748-6-amorenoz@redhat.com> <202406050852.hDtfskO0-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Jun 05, 2024 at 07:31:55PM +0000, Adrián Moreno wrote: > On Wed, Jun 05, 2024 at 08:29:22AM GMT, kernel test robot wrote: > > Hi Adrian, > > > > kernel test robot noticed the following build errors: > > > > [auto build test ERROR on net-next/main] > > > > url: https://github.com/intel-lab-lkp/linux/commits/Adrian-Moreno/net-psample-add-user-cookie/20240604-030055 > > base: net-next/main > > patch link: https://lore.kernel.org/r/20240603185647.2310748-6-amorenoz%40redhat.com > > patch subject: [PATCH net-next v2 5/9] net: openvswitch: add emit_sample action > > config: s390-randconfig-002-20240605 (https://download.01.org/0day-ci/archive/20240605/202406050852.hDtfskO0-lkp@intel.com/config) > > compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a) > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240605/202406050852.hDtfskO0-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot > > | Closes: https://lore.kernel.org/oe-kbuild-all/202406050852.hDtfskO0-lkp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > > s390x-linux-ld: net/openvswitch/actions.o: in function `do_execute_actions': > > >> actions.c:(.text+0x1d5c): undefined reference to `psample_sample_packet' > > > > Thanks robot! > > OK, I think I know what's wrong. There is an optional dependency with > PSAMPLE. Openvswitch module does compile without PSAMPLE but there is a > link error if OPENVSWITCH=y and PSAMPLE=m. > > Looking into how to express this in the Kconfig, I'm planning to add the > following to the next version of the series. > > diff --git a/net/openvswitch/Kconfig b/net/openvswitch/Kconfig > index 29a7081858cd..2535f3f9f462 100644 > --- a/net/openvswitch/Kconfig > +++ b/net/openvswitch/Kconfig > @@ -10,6 +10,7 @@ config OPENVSWITCH > (NF_CONNTRACK && ((!NF_DEFRAG_IPV6 || NF_DEFRAG_IPV6) && \ > (!NF_NAT || NF_NAT) && \ > (!NETFILTER_CONNCOUNT || NETFILTER_CONNCOUNT))) > + depends on PSAMPLE || !PSAMPLE > select LIBCRC32C > select MPLS > select NET_MPLS_GSO > Thanks Adrián, I both agree that should work, and tested with the config at the link above and found that it does work.