Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp261150ybl; Thu, 29 Aug 2019 22:40:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqykKY8zvCEX3LsNem2F+mP4G9vErgJtwPMnl0rxCyhvgmvc/lGwVh9Nw+TEXMkIKuSzVJC/ X-Received: by 2002:a17:902:1126:: with SMTP id d35mr13925565pla.330.1567143654122; Thu, 29 Aug 2019 22:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567143654; cv=none; d=google.com; s=arc-20160816; b=uLvT/rDUtwrJFKi+YsgUM9Uyx/Xv7+qP1bai+bkgdz9ad+KN9OvuyXncV+7OaEOo3E dKOQyr3CTTCDVoJQWVvMhq1qQGIf8ayxZE/wSkVXfkMVEqnI5uMqq8F7KIUrC4jRsXNs t+aEl3QdvOxT+wdjXjkIscfFPYNunxqYr6XkSeUFdUDs6VOpI1Lm+VjUTCtK2rik4Xw7 toOEOiVLATCeuWpEJ8UUPmuAeeYfZy/Owitz7STSc94jaDQ1JrhC0O8NpPtfS6bn2a0w FRDShUZ6sm63H9hkUY+LPGrcggLlYcIUkY1SKW7A008+qWLVTXCXt/mZQePMk8UT27h3 sNrw== 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=1wp+VbzCUI59xGci2FOifBql4duIgf397Nuhms2TWPw=; b=qHq82xjtONw0o+kiicAqt+Fe39xAh0snt6RkwP1FVMokiXR1ITwpH3hQr8BfCkGC/P 28eu+7/05qz2/IelQ2UR1lrK3s9vtBmEVe3t3BVFNOHAeKcqmPeafYZtpjb+m7jLdQg+ 0s/Xpl3fMZDDj+r+60SMtt83Q2iMkPN7Ug/m3v6mXV+5yUsL4tB1gQcpltG6wfYLd8zo Yp+SHyBOLGkPvU+bZvM8Tq+cV4vpveLwFJt+CMFtdpPvNend9d+VFJfjesMgFMraIgp3 vOUh4YFfBSEs5h1uVyXIjfJIe/N1x7xdmLZ6worjfBC6mbigakqoPdoGpxpEwYAZbywI tq5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="JXoo/8gX"; 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 b14si5189329pfp.253.2019.08.29.22.40.38; Thu, 29 Aug 2019 22:40:54 -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=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="JXoo/8gX"; 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 S1728107AbfH3Fjn (ORCPT + 99 others); Fri, 30 Aug 2019 01:39:43 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55046 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727844AbfH3Fjn (ORCPT ); Fri, 30 Aug 2019 01:39:43 -0400 Received: by mail-wm1-f65.google.com with SMTP id k2so4488734wmj.4 for ; Thu, 29 Aug 2019 22:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1wp+VbzCUI59xGci2FOifBql4duIgf397Nuhms2TWPw=; b=JXoo/8gXstErUb06GTBgBKo3rcv4zI2kdi/h0lc8RbMOAMNzDfThaJr4PFXLmrX3sK AkLbNdedylvq0GU3OcPOFuBY9Wc+pm8HHZBFhb8huSmSkEVZUXN44qggDKok0BAQMufK DsSYjhw23UyGTcrn6D1+ZJ3O+n2N2kYiQaFTvw12epR+aEfrQSA5BvDbIzSa0ahl0AwC XvlwOtwkxHnx4hGmJyzwFN70cRgEOyoF0rMi36AqUpDjOsI2kz2/lcWeiYS772N+jXGx I8dAgQ7/X5g3iBSq/ydYAwL+Z61l8jGIS4iv+1wduc3mxo012PmSiGYEEu+HnupJ00/U ta6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1wp+VbzCUI59xGci2FOifBql4duIgf397Nuhms2TWPw=; b=PmLQoZcKMJQOq/DdUnaqWbXBVpZxR0nE9NaQ1fSeelZA1JEMXfSM932zXdMuPoJ250 TvdLQDhG7K4OwAArfBv3/o6RzLnubVK4KO2Kg3X8YBHu3LISnTG41VOpbkAF7nzr0bHI uz/TRxuXLge1YnMbSW9M0Wu7yYX7c5i3q6BgAQ1Uw1LxyFL2PsljmBkmt6eFD+FcRxSZ b4lsc+p4pzblsuaRky++fxJTzz0srI53urXyKl1s6DXLN0ZdIgmJZIPtL1jmtdMZircM ezAn5J54VrumOqRzMkII+u7KJN+y4z8xyXUl261Y62oUZDCg2r3cIryI8Pszyg7+U2Lo 2BVA== X-Gm-Message-State: APjAAAUQd/gWCXci4WQyUuzUIGKNry4NU/hSQvNLUnXgHodwFBant/tw EHUpOmIk+DtwI3Flrl0P3LBdxQ== X-Received: by 2002:a1c:ca0c:: with SMTP id a12mr15418773wmg.71.1567143581424; Thu, 29 Aug 2019 22:39:41 -0700 (PDT) Received: from localhost (ip-78-45-163-186.net.upcbroadband.cz. [78.45.163.186]) by smtp.gmail.com with ESMTPSA id r16sm8358227wrc.81.2019.08.29.22.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 22:39:40 -0700 (PDT) Date: Fri, 30 Aug 2019 07:39:40 +0200 From: Jiri Pirko To: David Miller Cc: idosch@idosch.org, 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. Message-ID: <20190830053940.GL2312@nanopsycho> References: <20190829175759.GA19471@splinter> <20190829182957.GA17530@lunn.ch> <20190829193613.GA23259@splinter> <20190829.151201.940681219080864052.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190829.151201.940681219080864052.davem@davemloft.net> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fri, Aug 30, 2019 at 12:12:01AM CEST, davem@davemloft.net wrote: >From: Ido Schimmel >Date: Thu, 29 Aug 2019 22:36:13 +0300 > >> I fully agree that we should make it easy for users to capture offloaded >> traffic, which is why I suggested patching libpcap. Add a flag to >> capable netdevs that tells libpcap that in order to capture all the >> traffic from this interface it needs to add a tc filter with a trap >> action. That way zero familiarity with tc is required from users. > >Why not just make setting promisc mode on the device do this rather than >require all of this tc indirection nonsense? Because the "promisc mode" would gain another meaning. Now how the driver should guess which meaning the user ment when he setted it? filter or trap? That is very confusing. If the flag is the way to do this, let's introduce another flag, like IFF_TRAPPING indicating that user wants exactly this. > >That's the whole point of this conversation I thought?