Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp296350ybl; Thu, 29 Aug 2019 23:20:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhAxoZLWUh16YUbr5nbdgOO/MG0HABLeWa6ZjA1NekuyAvOdpiPJZvs/ymHRWeaq4+WRHu X-Received: by 2002:a65:64ce:: with SMTP id t14mr11572713pgv.137.1567146000981; Thu, 29 Aug 2019 23:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567146000; cv=none; d=google.com; s=arc-20160816; b=nlEXVDOtFjserb1CKOgw6o0DVRMQEwNyTYL85j/m7fv9YAqNo5n9LCH8ZAXSj6c666 P9jRL+1NJqhpegqBui+HDWnhJWmw+Dkswx4Wa6w+VvcRTkME7I3GnVF+Inhav2yEF/Yy EpdeCNpnGDFPng9unxcB0Oh+TLwYOQMhQX/d1DN+KfQgWL74E3XuypZTH9vP7HqV6H/2 Z0PGQsE2xR3rXql+nhyTmzF1bQs7J9nLb1DAjqHGA4ObAsUxeXB1i2zNAE/sgSqjHxhA WnCI0yYrtsdMXZDLBMEHNRxcDMJ/evNuMrYIpoQv/w8gjr7JRR88S2pwIVbUjeF5Ride uRwg== 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=I63CEgfzOALi1cNl/dEtMkXQIcNf3h0Nbp+wpTHDU5c=; b=UUVkhNAJ6giQlR+eM+edZUf300M9CtIxG6A2bw2bf2jt5hYXHfvDwJOqQRwCecBF35 2jlcB7spBA/g9b1qLMHriDw1kzCBCPVcqXsKASAGj5ufEDn4KUL3D9aW0eYCuHhErIva oCBa3i2odtmZGxVxnTXs0joxs0i/siIlr1LlnskWl0XYbQeZuCSG8aUJTH3mIrPxFI00 rdEU7hOePgfpXvZ2d2+xo1V1KFXP8lcdlLvj8aZowCBHWmqsmRajjAr+4FSPkg5ZP96Z gRlLlyVoHeHf7EffiheJ5hSYnd1oVdIE434BUcSTkQWM6X3PV76fj1My1Fa5TDe5Pauy ZGNw== 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 d2si4031234pld.59.2019.08.29.23.19.45; Thu, 29 Aug 2019 23:20:00 -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 S1727681AbfH3GSv (ORCPT + 99 others); Fri, 30 Aug 2019 02:18:51 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:59124 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbfH3GSu (ORCPT ); Fri, 30 Aug 2019 02:18:50 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (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 E27BA15448094; Thu, 29 Aug 2019 23:18:49 -0700 (PDT) Date: Thu, 29 Aug 2019 23:18:49 -0700 (PDT) Message-Id: <20190829.231849.163267210593234149.davem@davemloft.net> To: jiri@resnulli.us Cc: 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: <20190830061327.GM2312@nanopsycho> References: <20190829134901.GJ2312@nanopsycho> <20190829143732.GB17864@lunn.ch> <20190830061327.GM2312@nanopsycho> X-Mailer: Mew version 6.8 on Emacs 26.1 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]); Thu, 29 Aug 2019 23:18:50 -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 08:13:27 +0200 > In fact, I have usecase where I need to see only slow-path traffic by > wireshark, not all packets going through hw. This could be an attribute in the descriptor entries for the packets provided to userspace, and BPF filters could act on these as well. Switch network devices aren't special, promiscuous mode means all packets on the wire that you are attached. This talk about special handling of "trapping" is a strawman.