From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_SBL,URIBL_SBL_A autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 577E5C3A5A3 for ; Fri, 30 Aug 2019 06:18:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B4442087F for ; Fri, 30 Aug 2019 06:18:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727754AbfH3GSv (ORCPT ); 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.