Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2818334ybp; Sat, 5 Oct 2019 21:46:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtl17eSo3NS/MuvcElUDyy/71LNqfEUe9freBZMddYlaXA7iTHOxMQQ++hnJuh6KVIL9zn X-Received: by 2002:aa7:d718:: with SMTP id t24mr22595318edq.300.1570337209760; Sat, 05 Oct 2019 21:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570337209; cv=none; d=google.com; s=arc-20160816; b=XC2NhqnKDilxUBQERQY/32FeQbj3sksHtDzU1zQFwGaeamLbexVXQNDaDyOELwMSxG nZPW7U+Mk4FfbMJKgZaSVAYZU4mCv5R/BlKImrxFf2VY3WMbfDQyEe5Dk4eazkn8DDe8 R9qzQ/qdFl2hrQ2rB7u6lHkq2S0SX3sm0fXRL31r34EQ8O66+cXMxuW2Isnd37zzjFjB RA6lS4JHWwhR3ZMEIG1KHSZkD1o84qHhvS2KhDEBcohKC0/DhD7nkrQI9EbB3aXm2Njd FmKkoI5Tqu4QU8Xu3fus0ckDR+1jtbkILdjw3ri1iMvyvv7Hz+QwZBNwDh47qw92E/4u 3hMg== 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 :content-disposition:mime-version:references:in-reply-to:subject:cc :to:from:message-id:date:dkim-signature; bh=kB/2w61oZEEDGxbrCbsRG0VuZG0GVdwPCxnFggz0cLA=; b=gzpTigSp/nuRfMm8eQ+RmGa7BPe1zlp6IgzqG0ilPzISOHZ+N1MUcj7PgU5MerfEWk gXKtWijGSl3VpcHFoyRt0h7dNrH45NWUt65b1Yi4mRTG6/FvYUQk+R8UETYXuTGgGllP hPyiJHKQSKqovxOSsknb2Qoq3qEfFGg6yz/KpLwKCTvmDJj8sN6X+NoGQ2bvtrpFR2p0 l9FhsJHI/ZRuiCWjbtedSjnNrC8Jw90e71zicY18E8fG39koNmU+EVjnaaFFG4Q1Z/Yx nexWnu9pdJ5uTzAv/3PzWFVYOXOb3JOLGbGesu3AE6zk/oCEKeJ7ZbPEZvy6trxLO8dH I92g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M4CU5YWv; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gh16si5665969ejb.150.2019.10.05.21.45.52; Sat, 05 Oct 2019 21:46:49 -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=@gmail.com header.s=20161025 header.b=M4CU5YWv; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726139AbfJFEoH (ORCPT + 99 others); Sun, 6 Oct 2019 00:44:07 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:35038 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfJFEoG (ORCPT ); Sun, 6 Oct 2019 00:44:06 -0400 Received: by mail-qt1-f193.google.com with SMTP id m15so14589418qtq.2; Sat, 05 Oct 2019 21:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=kB/2w61oZEEDGxbrCbsRG0VuZG0GVdwPCxnFggz0cLA=; b=M4CU5YWvaVJ944N26oDgpXQsy2aR1zNuNwSiJtdycs06E1qlNroM8+Qeizdw9sG1cd 9MkYCVd3d29lrb+w6Ip7E7CaJWw6qspTZy15Lg3gFNHjfPAckLR3mehq5HVjgXsRMkRj T0ZVTBL1Q9HhVhE3t11O0nIHoWMEC53CnTX0gCep+Z+u7ciFUW5AavZhCkiYJ3qT6WzG PJA8SqBkT9NwxauIXg9xzIyicFVRLTyHIgqaaGbwTQ+khF2dW5mucxqG4bGQIkwHjx7N prlw8/yya69BJsP6d6SAqzJ5h+62sScye2BONrjzdwcnWXoXTInPv24tbOVGuHm9NcD3 t8FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:cc:subject:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=kB/2w61oZEEDGxbrCbsRG0VuZG0GVdwPCxnFggz0cLA=; b=emmG2q8OjxazTTls3q/I2+Co98T2hS2FrrPQ2Vpec43dVHskuNOaq9qqTSVoOrgOTe 4huuzVyJihuDO3Iap/g9RjBtC2nsVwHHOZ+3PKhJnSe/A+D17igh6mJjKxEfi4FIiDvF h78lr5bQnbKQD7j+IAnL5hdvaSuRSHdn8e6DbD9rnVqy6sGxuuS0eivOFWKJyBU99eqi 5AFKngZ/KpvpyRFKc0oxL03reEf4FiUybhwy2ihHO7Sme4oTeoyPTaHjGkTfCtP+zS3M jvU5BzPqCzc9Jm+HEhNxiCyWH2ZDQzqQZFvIXxNzC8NVWrWxhQL4+x6ozCyweepBw2kh WkjA== X-Gm-Message-State: APjAAAUWZFsNLg63lx8jrG4YPtUUQlTUbSDiK6Hn4O0zJFuchglHc5yU dRQdYVDuK0WFyep+++ftU3E= X-Received: by 2002:ac8:1099:: with SMTP id a25mr23919221qtj.308.1570337045549; Sat, 05 Oct 2019 21:44:05 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id 199sm5890955qkk.112.2019.10.05.21.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2019 21:44:04 -0700 (PDT) Date: Sun, 6 Oct 2019 00:44:03 -0400 Message-ID: <20191006004403.GB709015@t480s.localdomain> From: Vivien Didelot To: Florian Fainelli Cc: netdev@vger.kernel.org, Hubert Feurstein , Florian Fainelli , Andrew Lunn , "David S. Miller" , open list Subject: Re: [PATCH net] net: dsa: b53: Do not clear existing mirrored port mask In-Reply-To: <20191005220518.14008-1-f.fainelli@gmail.com> References: <20191005220518.14008-1-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 5 Oct 2019 15:05:18 -0700, Florian Fainelli wrote: > Clearing the existing bitmask of mirrored ports essentially prevents us > from capturing more than one port at any given time. This is clearly > wrong, do not clear the bitmask prior to setting up the new port. > > Reported-by: Hubert Feurstein > Fixes: ed3af5fd08eb ("net: dsa: b53: Add support for port mirroring") > Signed-off-by: Florian Fainelli Reviewed-by: Vivien Didelot