Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp775763ybh; Wed, 11 Mar 2020 10:32:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuJF9XlaMac6l5edtBtwaslgST/hA/JMygDNh3JGPDmFHhFxhLHtL5s/+mVTpBMTA5oBaxD X-Received: by 2002:aca:3507:: with SMTP id c7mr2694532oia.147.1583947967111; Wed, 11 Mar 2020 10:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583947967; cv=none; d=google.com; s=arc-20160816; b=p0M7pSEjbzQEHIaNr4aZZeoP/7D3UI/6zBFwgly05VFVLyE9nTEvs+ulH/otjIjyzk 1yNX4SknNT+O+cATiZKquMxr/YdNtVYhVkNRrmsk0SIVafhGdoKhe+bqra7GjRH64j53 4c2+PdrxSDpM++S51qzoPfGmxZpHDhFIpFaTkhQWXGvSn6fYzY0vHt5WAmlDmtci0Fvo EXq/euKSS8sfqMtDZ5UOZj5j3Fwt3GCnwUG+hURgLWn+zknOg7TQxNKxbx9Ofgx8+qoL DpKIiqqRLvNqOC6/JdOZzd04747HASTiDfuJDzZhEHr5kXMpqL9N7SOLnIBOknVxJeg2 2agw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hUvHhcj/lIhWT5Km5iuVIF8Z2DqQFrVijg4V4ZgQw38=; b=xbUoQPrzK0AErdxsyWD1X9wLaYAPJmYIZAFqfLQKVigbFiN+5cX63gAOKUkXRE62Yc Y4nRYfXcqfjvYeDNRdK9CfQLT9qYEPY92+nYZKkv8RiCTvGv4gwYwrZotaTyPF/IOmPT vKDte2dyz2TFf6/5qXh1wBP3wtMI0WZeobAwXNKelRpRxY5j0GPFsAAUlr6XC6ifp8G8 KMN1qOYgq9NNjeCmULDyynSKzFUwGMw5RjmEDG9yZdIySs/5+yN/tj36o2Gf+8Ju9Cy9 N1klQ0fDGBc7N/nYq7UIcrxhqc68VhILNjOlvwKlgJp5YzPlVrv0T5w/JYAldgsqSsZH /jWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si1307970oiq.71.2020.03.11.10.32.34; Wed, 11 Mar 2020 10:32:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730518AbgCKRbH (ORCPT + 99 others); Wed, 11 Mar 2020 13:31:07 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:53919 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730389AbgCKRbH (ORCPT ); Wed, 11 Mar 2020 13:31:07 -0400 Received: from 2606-a000-111b-43ee-0000-0000-0000-1bf2.inf6.spectrum.com ([2606:a000:111b:43ee::1bf2] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1jC5C2-0002vR-2S; Wed, 11 Mar 2020 13:30:57 -0400 Date: Wed, 11 Mar 2020 13:30:53 -0400 From: Neil Horman To: Ido Schimmel Cc: Masahiro Yamada , jiri@mellanox.com, netdev@vger.kernel.org, "David S . Miller" , Stephen Rothwell , Nicolas Pitre , linux-kbuild@vger.kernel.org, Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: drop_monitor: use IS_REACHABLE() to guard net_dm_hw_report() Message-ID: <20200311173053.GB1972672@hmswarspite.think-freely.org> References: <20200311062925.5163-1-masahiroy@kernel.org> <20200311093143.GB279080@splinter> <20200311104756.GA1972672@hmswarspite.think-freely.org> <20200311112833.GA284417@splinter> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200311112833.GA284417@splinter> X-Spam-Score: -2.9 (--) X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2020 at 01:28:33PM +0200, Ido Schimmel wrote: > On Wed, Mar 11, 2020 at 06:47:56AM -0400, Neil Horman wrote: > > On Wed, Mar 11, 2020 at 11:31:43AM +0200, Ido Schimmel wrote: > > > On Wed, Mar 11, 2020 at 03:29:25PM +0900, Masahiro Yamada wrote: > > > > In net/Kconfig, NET_DEVLINK implies NET_DROP_MONITOR. > > > > > > > > The original behavior of the 'imply' keyword prevents NET_DROP_MONITOR > > > > from being 'm' when NET_DEVLINK=y. > > > > > > > > With the planned Kconfig change that relaxes the 'imply', the > > > > combination of NET_DEVLINK=y and NET_DROP_MONITOR=m would be allowed. > > > > > > > > Use IS_REACHABLE() to avoid the vmlinux link error for this case. > > > > > > > > Reported-by: Stephen Rothwell > > > > Signed-off-by: Masahiro Yamada > > > > > > Thanks, Masahiro. > > > > > > Neil, Jiri, another option (long term) is to add a raw tracepoint (not > > > part of ABI) in devlink and have drop monitor register its probe on it > > > when monitoring. > > > > > > Two advantages: > > > 1. Consistent with what drop monitor is already doing with kfree_skb() > > > tracepoint > > > 2. We can remove 'imply NET_DROP_MONITOR' altogether > > > > > > What do you think? > > > > > Agreed, I think I like this implementation better. > > OK, but I don't want to block Masahiro. I think we can go with his patch > and then I'll add the raw tracepoint in the next release. > Yeah, ok, I can agree with that Acked-by: Neil Horman