Received: by 2002:a25:9388:0:0:0:0:0 with SMTP id a8csp7147863ybm; Thu, 13 Jun 2019 10:29:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQzzX/KDiz1Flaxkl3dzig/6W73fSwjDUaR6mhYuhAVagwZfA81BcL6foum/tVbNug7rPP X-Received: by 2002:a17:902:8649:: with SMTP id y9mr12164175plt.289.1560446949773; Thu, 13 Jun 2019 10:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560446949; cv=none; d=google.com; s=arc-20160816; b=K4M+jrh3kG8nSgp6hpE6eOf4wpXt8H3y0/qxiJjWOCcX8bD57eQjfC7kw8OJEY3RSF USiDuW3eY9GZssHk4jZUBgU+7D7DPtraCqQfMymQupZVV1pSJUnVCG4L+2xtYvxN+Spq Cnto74w86HBzD9ujpCQuzeDpRs6VFYZjTi0tfa2nLhVOQr0fKk/XFkmSfkvBVILI2dRk yzqcT1Mj1B919Nd+L2ttZbwgm1PYkN/tBpfjBaHrBU7QumA2DP9uhA+DvYwemb2FHPyj gpPdQsAUR1l99rIcIJYVUTMFiVGzTUFBRvcx9AkOxlzAY5EdtqkiDBxNL/0AkQdZHN2M rdGg== 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=pWffWnnz+ElhG5m21Q51hYVp+tij/VSIEpeJT0zysCo=; b=G5KuWJGQ1jGFXaX4OlX9oebPZOeqHnkZFr2PAYv3cmkWjvRArtHWxvvuAO8r7HzXd6 jx9JoHJdM483qkBxCdanu3Amn5YcmD7ShNne2GyLQcC+QmHb+bkGVeZCWfUTzUPU2ky8 DIre6ueYO0dB7rx/cQhOV/H46+Uda/qKf3n84m9Lxk8p38BdarlgfdA8KrphzsnFsUto HKFTzdn6IDdOwIgVkazw4U6pC5qrUBGDfGVOriLq+TZWCtlo2KnqtasreNgbz0sh3Z9z P8k5l8kL8whKQExewfTpDYO9y1RaPtoHd1C4zCEQocNkYF3u3HQz+HE37G0sHXjyFEu3 9fDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oedfKylP; 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 h13si148093pfk.196.2019.06.13.10.28.54; Thu, 13 Jun 2019 10:29:09 -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=oedfKylP; 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 S1729290AbfFMR2U (ORCPT + 99 others); Thu, 13 Jun 2019 13:28:20 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34104 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbfFMR2U (ORCPT ); Thu, 13 Jun 2019 13:28:20 -0400 Received: by mail-qt1-f196.google.com with SMTP id m29so23501359qtu.1; Thu, 13 Jun 2019 10:28:19 -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=pWffWnnz+ElhG5m21Q51hYVp+tij/VSIEpeJT0zysCo=; b=oedfKylP7XiL91oxgUEhfNz3Oaa6XwtxNRkYrb0ywhdVbK4s9LxWo5pLBQhnXqxVZO mQmpKjRfP0sZ5gjNnC12F6dtaDg5slkw/5ciFU3u4mtMsLQzsH7NMW2N7UmdHFaASSM0 cGaq1uX0ej4sv3xkM96UfT/TXHrL46MQn3De1qrKpbYbxzrWCub6xik5bNveeDUfXWF/ AvzBwr/tpr0s6ndXcAyU3KDLNISllkEOBGNnx9slxbBQaY+8nEIKOUt4hnI/kf8vQ4E7 j2P546W3vp9q1ksff5L+cAFA+Z+Z/TXjVvIOUKg3YWtBH+X1rtszOlcIOQRefn9D4JK4 dmmw== 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=pWffWnnz+ElhG5m21Q51hYVp+tij/VSIEpeJT0zysCo=; b=USvEjfh5qkt7p6fCDUVo66/vnkiIaMlQky1LeGlEsmDA1u3AK2PJCCQizYzqc49yUV s2V9javFkbY3wsg/fE/QWUG4kgSa56vjmSrcE1tiVrPFiNS5W8ksJFoFuxXHZTrw1sgm GjRIqs2mRt1bvc5NdgqxHwHJpSQ0pR2UPdbIr9kgeDzioV79RX7YIaCSGxCJS1r6OQiv RivaQPt1Nwn2OZ7vT8D1mrE4rTaLMljCLpElZn4xnY1MIJUCVeIQPzaGhxG8Qw73d2s4 Q4q0n9yUZ7HihJMVMk6phnv7ZejMP0oc5eKrGIc4n9tjsv70XDDR+rFb+sYS+Y4Xb7hn gGHA== X-Gm-Message-State: APjAAAXwQXVaUVRE8bzmzaRvuB3UBvTeK4l+5QimzV3roi2nED2ampOb GT0RgypP/TVOSHBQ76cGKvCPrCJ00v0= X-Received: by 2002:a0c:b0e4:: with SMTP id p33mr4659392qvc.208.1560446899040; Thu, 13 Jun 2019 10:28:19 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id s134sm109461qke.51.2019.06.13.10.28.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 10:28:18 -0700 (PDT) Date: Thu, 13 Jun 2019 13:28:17 -0400 Message-ID: <20190613132817.GB22277@t480s.localdomain> From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "David S. Miller" , f.fainelli@gmail.com, andrew@lunn.ch Subject: Re: [PATCH net-next 0/4] net: dsa: use switchdev attr and obj handlers In-Reply-To: <20190611214747.22285-1-vivien.didelot@gmail.com> References: <20190611214747.22285-1-vivien.didelot@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 Hi David, On Tue, 11 Jun 2019 17:47:43 -0400, Vivien Didelot wrote: > This series reduces boilerplate in the handling of switchdev attribute and > object operations by using the switchdev_handle_* helpers, which check the > targeted devices and recurse into their lower devices. > > This also brings back the ability to inspect operations targeting the bridge > device itself (where .orig_dev is the bridge device and .dev is the slave), > even though that is of no use yet and skipped by this series. > > Vivien Didelot (4): > net: dsa: do not check orig_dev in vlan del > net: dsa: make cpu_dp non const > net: dsa: make dsa_slave_dev_check use const > net: dsa: use switchdev handle helpers > > include/net/dsa.h | 2 +- > net/dsa/port.c | 9 ------ > net/dsa/slave.c | 81 ++++++++++++++++++++--------------------------- > 3 files changed, 36 insertions(+), 56 deletions(-) Please do not merge. The orig_dev != dev test in patch 4 is not correct, because it skips the programming of the HOST_MDB object. I'll respin in a few. Thanks, Vivien