Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp902407ybe; Mon, 2 Sep 2019 10:56:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfgYHzoZItiAzhV4y1MsRdofD8RhFT+EgkZYtGYNpyfUN/O1OY88v8b5tayAalk4xd2trk X-Received: by 2002:a63:fe52:: with SMTP id x18mr27438327pgj.344.1567446993414; Mon, 02 Sep 2019 10:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567446993; cv=none; d=google.com; s=arc-20160816; b=C1Tri5+NWnZ2/U/kHhRQQTyadvyvoGIx9TqkRjLqKBhEBBK8thwLJiXn/GLjbW/uWM aAzZQZtK9C2I4w7RPvMhRIHOYOIW/NIShr6sLZ05RqFzoO1vWxxvafgoTiB65TTRDxkE jhw83xo423NYcnBBTb4wquT77x80UdiC3xXxEtqem6Oef8/H7zU68x3P5eZbpcabMBYG iqU3A7MyTmAb+ZUh8VC73Q1zqBlV41/pyyUnFyTJQh7Jx1nS2GkI7CZGtUEFhDZQ/SoY M6Ozy+ReEXlsiouRqUmCNH5Rc4XBLpRWQDkPebS9hEkcuQPLrnfqmOWyuAMlmXykNP4Y eUpg== 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:ironport-sdr; bh=zjho1Qn1Gml0Fw77UegUKmLcVOHcvFBGWuv0QsupbXg=; b=OEYef3cUet2NhW/Lz5qvKnBvL5X4WGT3shWGoK0banh3RGbNniz37DpPAAZ6cFqRJt hlGFpkXZVS/9mHqX23KwqCKZZ1yJ/Nyl7rmCDqpjEHnqg4ZBLsXBndxif7e0Cx1cjjMI Jq9eOVN4yl8hp/qFfjgLYvMJ+AeRsrsqCS8ucP9xddZiZp5X9UXWtS5zWlXyeTjLT0FQ 2qIGlNRlz/f+hAwWWIOYZhdUsVlrG5iEWPOSbuWiZro+seQsgRrKn/yajN0vwBGaymlO LuHyQ15W2z783OtzejdAqBNyR8Yv7c++2CyoMob7zY7/JNUT5WNSMn8qTbpmc+feWRdC Fy6w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si12375836pjp.76.2019.09.02.10.56.17; Mon, 02 Sep 2019 10:56:33 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726779AbfIBRz3 (ORCPT + 99 others); Mon, 2 Sep 2019 13:55:29 -0400 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:65501 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbfIBRz3 (ORCPT ); Mon, 2 Sep 2019 13:55:29 -0400 Received-SPF: Pass (esa6.microchip.iphmx.com: domain of Allan.Nielsen@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa6.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="Allan.Nielsen@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa6.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa6.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa6.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Allan.Nielsen@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: MAKZapXI/brCzKTAggHur1oxx5MEehc5gkNmGo6a/bkD8t2WLAyz5cuvNV2XjWv1zYJc4C3H40 5Us4QwCDeBylBXs295NjtRhpiKUgeXmx1kBUBhjva12/zPNDlaTSuBy/Z7pR9b77KyMwhBellT 1uNEoyTA2KdlzIwoHHplLqfOBdH4S7ktTVr8M8s4wgxSiHR8c8YTH0j8oQ9Wo583YPkaL4DEEK cLb+DbvgBzqd4+OKk+EUP9bivbmEPu7PfrthHruMae/Z7WgcJ/jQ2jbz9X/d2GtKPJePix6G0X zsE= X-IronPort-AV: E=Sophos;i="5.64,460,1559545200"; d="scan'208";a="44600008" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Sep 2019 10:55:28 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 2 Sep 2019 10:55:28 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Mon, 2 Sep 2019 10:55:27 -0700 Date: Mon, 2 Sep 2019 19:55:27 +0200 From: "Allan W. Nielsen" To: Andrew Lunn CC: Ido Schimmel , David Miller , , , , , , , , Subject: Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity. Message-ID: <20190902175526.72gsb4c4hoswd4ds@lx-anielsen.microsemi.net> References: <20190829175759.GA19471@splinter> <20190829182957.GA17530@lunn.ch> <20190829193613.GA23259@splinter> <20190829.151201.940681219080864052.davem@davemloft.net> <20190830094319.GA31789@splinter> <20190831193556.GB2647@lunn.ch> <20190831204705.GA28380@splinter> <20190901184819.GA24673@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20190901184819.GA24673@lunn.ch> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 09/01/2019 20:48, Andrew Lunn wrote: > > Look, this again boils down to what promisc mode means with regards to > > hardware offload. You want it to mean punt all traffic to the CPU? Fine. > > Does not seem like anyone will be switching sides anyway, so lets move > > forward. But the current approach is not good. Each driver needs to have > > this special case logic and the semantics of promisc mode change not > > only with regards to the value of the promisc counter, but also with > > regards to the interface's uppers. This is highly fragile and confusing. > Yes, i agree. We want one function, in the core, which handles all the > different uppers. Maybe 2, if we need to consider L2 and L3 switches > differently. Are you suggesting that we continue the path in v3, but add a utility function to determinate if the interface needs to go into promisc mode (taking the bridge stats, the promisc counter, and the upper devices into account). Or are you suggest that we like Ido go back to v2? /Allan