Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2924013ybl; Thu, 29 Aug 2019 15:10:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqygWFNDlDDNA7TSQpW9dhCTZBvr7c+IYFul1EmOk+oVj1r+MwUh8hocmIunV/z8g5M2m9cS X-Received: by 2002:aa7:8219:: with SMTP id k25mr14455338pfi.72.1567116600761; Thu, 29 Aug 2019 15:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567116600; cv=none; d=google.com; s=arc-20160816; b=tAFsSiXrZ0qybdMC4CPranz59aycHMsGiKeCTFASeXenmrL7pGBWi6LdSuEi+iXeot B1mhJurcpRGzeOJFlK1yUeulHvXuYZ1t8brP1j3OmN/wLLPHsrzOqY62d7UevU1DhSAj udqEAvp9r5+17ERIGSil3yGU+BDhEm82gChbW0IdXMTV7sYsPBLKN+yht0BXBud0smJd /cuPySLZ3uzHK50ZD1MsLzBsHFnJBZAfxhuYv/3dO00251arlXOzU6UEHedOR2H1Q5pC MmG40Bn2rS/FmsJ/n6FE8syKMV/QCCROMKwMsB0nHJz5A+y5sOY05Q369igpd59DZJnX f/Lg== 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=9t6QjQh0ONNSTZkSwj1xrdqjsLREEmTaK2xGiKcRzgc=; b=eXiGKXIHvwnzvEl3HLDcXhM2VmE2ztVXroA0qZwjM7yQXVoqjcDl/dpfMxzoPynGKn UOhryxhVPx5PmIDyJRjNLhvMnc7tDw05eZMhTqgL2mBVpUpRg71TcQJb9eXWfJsx/95t DUSenkyK2TjvVLOhJdfR1SGYU86z/KfO4HKznswENC5hlWbT8kIr9SqXnzjkq00fEFWR ATTVecpO77XvgVmdunulwRl37PMvBAeM26oMFo/XH7ErgHPrw92suw7/Jiig/6E48djb 9qXCW8R9FIzoJU4uz8G2lWotU/IPooEIWmgHy7JoKOHjGMC7lvrH6F/Aqg+ZrhvNX//w BsUA== 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 s18si3013826pgq.177.2019.08.29.15.09.43; Thu, 29 Aug 2019 15:10: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 S1728109AbfH2WIz (ORCPT + 99 others); Thu, 29 Aug 2019 18:08:55 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:54302 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727686AbfH2WIz (ORCPT ); Thu, 29 Aug 2019 18:08:55 -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 9013F153AC237; Thu, 29 Aug 2019 15:08:51 -0700 (PDT) Date: Thu, 29 Aug 2019 15:08:51 -0700 (PDT) Message-Id: <20190829.150851.713654232867665043.davem@davemloft.net> To: idosch@idosch.org Cc: andrew@lunn.ch, jiri@resnulli.us, 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: <20190829175759.GA19471@splinter> References: <20190829134901.GJ2312@nanopsycho> <20190829143732.GB17864@lunn.ch> <20190829175759.GA19471@splinter> 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 15:08:52 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ido Schimmel Date: Thu, 29 Aug 2019 20:57:59 +0300 > On a software switch, when you run tcpdump without '-p', do you incur > major packet loss? No. Will this happen when you punt several Tbps to > your CPU on the hardware switch? Yes. > > Extending the definition of promiscuous mode to mean punt all traffic to > the CPU is wrong, IMO. You will not be able to capture all the packets This is so illogical, it is mind boggling. How different is this to using tcpdump/wireshark on a 100GB or 1TB network interface? There is no difference. Please stop portraying switches as special in this regard, they are not.