Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2297770ybl; Thu, 29 Aug 2019 06:27:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrPpB4sSIO5j1FZZIdtGxqzDaCn5IeBDGGhuR3NqUR+ozr1JVmxGdLyaUBGn90+UytuNb5 X-Received: by 2002:a17:902:1e3:: with SMTP id b90mr10104132plb.82.1567085246832; Thu, 29 Aug 2019 06:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567085246; cv=none; d=google.com; s=arc-20160816; b=GQ7GxqmRPzmoVU9kq4WEfx94PGjQAZhR6kuXMa8/C/CyNXS1tR/mdxJ+DmkD/Als3J ZhaKjQGbTaYvAeMDKBZsVMXiU+KOFJTp3ht6CIakuOXFR7e5JJpLhRwEIncC/OIQEV/d lA701dqmCPA2lr0mEIOpogbDcKegJp5Fs5oZk3fOPN8akzJIMfgwHmIqVdQLA772nNOn /ccIHtYitCWOd70r0OwzMXfAjLbzDpEa5Pfser3K6XTZBXNx3o2MOrvpJ+VLIHs6cevf THgvOXZg38UXrm51g50t3fU7+tKddv51D7u+/txTvkH1mVBP4PgmU81HzCarGIkd2nL0 qTqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UTDvZ2Lzi29K8AW5de07/8rgh6jmhbyZB+/k1sHFNh0=; b=SZywJcvtzOe+vcK4zxJ9n92Yhwohq/fWNwutlVLwI0E0+c7mBow1RSiHVEZ4Sg5Cd6 4hiQo1SaUEMKIYcin8uvel6nMn+94sIJ5g/iR59d6LvVAqKgpglzKjAkbriwLhySNM3q qLHHbPD+rwehYrxbubZXdCZa0f24Y8Gc9ArXahGWoFHfD3RNzcdxj3RaefC9hLksllfq l0+kNyUsc8e8qHUPsqIeTWeIHbQEItnnSGQH+vhK2iiufmkIIkg1U5T/wVoslMrCE2Jb ixaMqJQXqnFqZhLLocpnMf/ExnImbJM/Oz60S/YID6txWcEpSP2SFFR7CY04mnGPQN5m 0GSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=BdWiBLYh; 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 r3si1892055plb.215.2019.08.29.06.27.09; Thu, 29 Aug 2019 06:27:26 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=BdWiBLYh; 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 S1727115AbfH2N0T (ORCPT + 99 others); Thu, 29 Aug 2019 09:26:19 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:40736 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbfH2N0T (ORCPT ); Thu, 29 Aug 2019 09:26:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UTDvZ2Lzi29K8AW5de07/8rgh6jmhbyZB+/k1sHFNh0=; b=BdWiBLYhoPJ8E/2KnS1JNO3IZB VeaYh4dwDR81JwLVv57FC2kJVWtJc7TFDGRS8Q9ZftlVB/tAxOJEDmrsPETF8C4Qo81JygYozy0fX rk5HhhRwcjvIMWQFomX7CcGSngZCwcqQonBb0qydxX9CEETn8wX47AumTmhyw8FOp7Y0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1i3KRH-0002Ja-QQ; Thu, 29 Aug 2019 15:26:11 +0200 Date: Thu, 29 Aug 2019 15:26:11 +0200 From: Andrew Lunn To: Jiri Pirko Cc: Horatiu Vultur , alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com, davem@davemloft.net, 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. Message-ID: <20190829132611.GC6998@lunn.ch> References: <1567070549-29255-1-git-send-email-horatiu.vultur@microchip.com> <1567070549-29255-2-git-send-email-horatiu.vultur@microchip.com> <20190829095100.GH2312@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190829095100.GH2312@nanopsycho> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > NACK > > This is invalid usecase for switchdev infra. Switchdev is there for > bridge offload purposes only. Hi Jiri I would argue this is for bridge offload. In another email, you say promisc is promisc. Does that mean the Mellonox hardware forwards every frame ingressing a port to the CPU by default as soon as it is enslaved to a bridge and promisc mode turned on? Or course not. At the moment, every switchdev driver wrongly implement promisc mode. This patchset is about correctly implementing promisc mode, so that applications can use it as expected. And that means configuring the hardware bridge to also forward a copy of frames to the CPU. I see trap as a different use case. tcpdump/pcap is not going to use traps. Andrew