Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp360180ybl; Fri, 30 Aug 2019 00:33:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTJiK0ZWmcQwGKJ6d5j5Hj8v/wfWJhqvwVHfFGg8PLysyQ/i+m2Pq18fB6BTCCkSFQ7trh X-Received: by 2002:a17:902:465:: with SMTP id 92mr14626425ple.128.1567150433302; Fri, 30 Aug 2019 00:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567150433; cv=none; d=google.com; s=arc-20160816; b=mMITAy5QJ6iiSDiFMfpBB3xMDELfRJQkOHRVGf7THKPjvTEvs1fH7wMjh05BVKlgha ZlZ9BfN8AdHunM0nOl5p8krKf3wbTeKxYUrE3NMLAYuxpUkKphf1qzhlEO6xQcUztO8z q5dcDoyS9WSWkTUTnqd0jmdkkP/8xlJuR1yUssQIUesAkCX3+900Jy5dklSortb7SxVE Pxf1+mM33t8gpw9jujDKWPqqY7+IQQ4WJcwEge8ldztYqWQ7yqbdMYl6CQ2PlFNNCPH2 G39fmTtNeQOB7Z+IonEPQqBvhAtTEed8UREScFTXyzkLYTrrHtyvKL7lPc/FP+BhUpVU t1rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Jq/VVtMgv5HSFJ5DLac4RlNaDc8GSvv/YJxtw5icDyw=; b=lNUoVFxzwc5FIhzLxf5oH4x0k1ZDEigQBkfhylwJ9YNmD71AmEZvV1HHhuIjKw9MSy SGjnTltsoLQqodnS+HSHdl1hJjODoLoYv6tXu8jw9BcdWLhXvntDYOgaL9I+XLtszJxy CdR1Wuyzl/YbXWHoaVahdk9XYkC4tUVLDj8ObGF4+pQ/kcoB6qgzqzInPk2jwbIJ4cOI 1h1e6rA4Q8Y7jDixt1NvXPi2VZXSPjU9lDBU5FzDlnNAaKafpdwBkVp3KIwBZ1cQlHXy QvKO9RhQj3JRY516gMQ8kQLbQ+F2K44qcd+W8Kof/qRdLmF9460l5D+wHUSJ8B2HDJ9Q hYmw== 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 n1si3872310pgn.77.2019.08.30.00.33.37; Fri, 30 Aug 2019 00:33:53 -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 S1728271AbfH3Hc1 (ORCPT + 99 others); Fri, 30 Aug 2019 03:32:27 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:59796 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727958AbfH3Hc1 (ORCPT ); Fri, 30 Aug 2019 03:32:27 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::642]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5B9951544FE29; Fri, 30 Aug 2019 00:32:26 -0700 (PDT) Date: Fri, 30 Aug 2019 00:32:25 -0700 (PDT) Message-Id: <20190830.003225.292019185488425085.davem@davemloft.net> To: jiri@resnulli.us Cc: idosch@idosch.org, andrew@lunn.ch, horatiu.vultur@microchip.com, alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com, allan.nielsen@microchip.com, ivecera@redhat.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity. From: David Miller In-Reply-To: <20190830072133.GP2312@nanopsycho> References: <20190830063624.GN2312@nanopsycho> <20190830.001223.669650763835949848.davem@davemloft.net> <20190830072133.GP2312@nanopsycho> X-Mailer: Mew version 6.8 on Emacs 26.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 30 Aug 2019 00:32:26 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Pirko Date: Fri, 30 Aug 2019 09:21:33 +0200 > Fri, Aug 30, 2019 at 09:12:23AM CEST, davem@davemloft.net wrote: >>From: Jiri Pirko >>Date: Fri, 30 Aug 2019 08:36:24 +0200 >> >>> The promiscuity is a way to setup the rx filter. So promics == rx filter >>> off. For normal nics, where there is no hw fwd datapath, >>> this coincidentally means all received packets go to cpu. >> >>You cannot convince me that the HW datapath isn't a "rx filter" too, sorry. > > If you look at it that way, then we have 2: rx_filter and hw_rx_filter. > The point is, those 2 are not one item, that is the point I'm trying to > make :/ And you can turn both of them off when I ask for promiscuous mode, that's a detail of the device not a semantic issue.