Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp597067ima; Wed, 6 Feb 2019 05:25:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IbhpkmWECMJmBY3S1MKoS5Fkf2Ew/l4DvIyS+UBYw9pWetnRKpRRsW2U5FwvBnkefyve6hO X-Received: by 2002:a17:902:6946:: with SMTP id k6mr10846856plt.101.1549459502117; Wed, 06 Feb 2019 05:25:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549459502; cv=none; d=google.com; s=arc-20160816; b=QQ/IIP4lMV3iZH+6ecCIM+krEPob/PDR6AnSMnZCqohww+112rHfSMVvWAZ6qTkNnx gHu0u9w5TsbCjv6VYPRNaP9eBbGzK+K+teQVno94N8b3YGt0J8M1OrRHLHF5Bo7azq7j hJn69nBZv+BJXC/cJvrKgPqqLW0B/0XLTSz1Ti03509K81jxDcMdN9S5GLzvCAZ4GQxP whyfxRuWIigW14DH83NVAbT3P++uh/RVkEJcYHtMdUQveCnMwzqC1O6MJ11+x2uOJwEz ZNVab8sgdevIWuPOlBnA9BFE5UT9haRPOgMip/N45qXshAYfgz9uLvUMyfKcIHaytSmR ZGkw== 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=R3MAd8ERATstMVf6jvlrx6LGkVnckuqZbN5JPFSgo0g=; b=MI2FLNu1WuUSblpzRC6DFn1NAzAtwakEOTfvCL36wZOaL2mnhwhV3PUErId6vSXE0B VMiYh6W9BY9DmGxtdlWF+YLX0dGBjgIlhYvSQt+A2WX9Fek0TEq7Ryd4YAHuMu77gHIf ccD6EEwAIuo3IKtA76BneoMEe9N1XtlpivHaJcy5qLch4fmgnWcbVQy/90UDbh8nOyoe A6gkRTqrqZjy0ZJVNJMrT5JttF/RWaLl0ahiHbCWdosqpajM6g70cSPIjWRtO1bjll/Y MlIKQCJ+T49N464peARnN0JRZsBMBRqSrSJFHDHh6A5Qd8U0XvAOtnokApZlrCC55hLC WzoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="GZBCzfI/"; 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 f12si3080023pgq.105.2019.02.06.05.24.45; Wed, 06 Feb 2019 05:25:02 -0800 (PST) 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="GZBCzfI/"; 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 S1731131AbfBFNXz (ORCPT + 99 others); Wed, 6 Feb 2019 08:23:55 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34532 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730773AbfBFNXv (ORCPT ); Wed, 6 Feb 2019 08:23:51 -0500 Received: by mail-wr1-f68.google.com with SMTP id z15so5496022wrn.1 for ; Wed, 06 Feb 2019 05:23:50 -0800 (PST) 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=R3MAd8ERATstMVf6jvlrx6LGkVnckuqZbN5JPFSgo0g=; b=GZBCzfI/ez5EkqElnQvm26Kol78TP0TlacDUtKht9wCO1LNxJPZOWQyH2id1ErSxOW YOFakguaBHbsOVsql+id60OsEBCjegGRkS2zikVvNYaIb+phCNALsTc5iRRmGiokGmZL PT/hbQJMIz8Lo9abaf7QbgiQ6z2BpLI0+0qe1otpfAOQOelGNyoCLEVSxfkLSSsS9Zf+ 5Gu1uw+rXUgsLcoOjQAKJn+KpgHtZDrnFzzm6jaaRa8lDRugfVzoCMoVt68+DesJsS9t KphyfUHMkQVbBz7mSBwi+PfABVxQo7dW3ILVr+q5JZBoyNlNl+D40f8UjKlu1AbGVNkQ SZYw== 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=R3MAd8ERATstMVf6jvlrx6LGkVnckuqZbN5JPFSgo0g=; b=eeNwkXWQfFojIAPjI9Lolw4192rKCFh/szi2i3rOLbaKfVUlOL28W74I68A7GvW5TS gAR9QoUtaA8gYb8DJoziuXwJWXmOuocY3tDosvO09De32vRdsqiHdyN7RwknxrJmASTR R56Lr3bMuqX5fV6d/m8bi2KVOLwZiyAeJdZuBPOR227KAIoQdYcRuaXuiq+4KozMlVwH sNeEngAh1OTwCI8UEpMyhT8e/dxjRAdy214ETc5Km1EqIfMDbLKj8XBm2R08uNRuxa1q lmTJ34zlqOS6IeOgdGEapJ69OcZUlfR396sSUfvt0S+lx/Bkgj/Ax13nHT52JDQ5X7x/ /EaQ== X-Gm-Message-State: AHQUAubnX2egaPVmOHlxjrJ7kT///UAo1cbs3ztjC/n/N8tMJ8Uhnlad RNsRAiRhDQW3T6TgvHMhm/N7YQ== X-Received: by 2002:adf:891a:: with SMTP id s26mr7886737wrs.44.1549459430017; Wed, 06 Feb 2019 05:23:50 -0800 (PST) Received: from localhost (mail.chocen-mesto.cz. [85.163.43.2]) by smtp.gmail.com with ESMTPSA id x22sm6475472wmj.40.2019.02.06.05.23.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 05:23:49 -0800 (PST) Date: Wed, 6 Feb 2019 14:14:38 +0100 From: Jiri Pirko To: Florian Fainelli Cc: netdev@vger.kernel.org, "David S. Miller" , Ido Schimmel , open list , "open list:MELLANOX MLX5 core VPI driver" , "open list:NETRONOME ETHERNET DRIVERS" , "open list:STAGING SUBSYSTEM" , "moderated list:ETHERNET BRIDGE" Subject: Re: [PATCH net-next v3 05/12] mlxsw: Implement ndo_get_port_parent_id() Message-ID: <20190206131438.GF2189@nanopsycho> References: <20190205235326.14600-1-f.fainelli@gmail.com> <20190205235326.14600-6-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205235326.14600-6-f.fainelli@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wed, Feb 06, 2019 at 12:53:19AM CET, f.fainelli@gmail.com wrote: >mlxsw implements SWITCHDEV_ATTR_ID_PORT_PARENT_ID and we want to get rid >of switchdev_ops eventually, ease that migration by implementing a >ndo_get_port_parent_id() function which returns what >switchdev_port_attr_get() would do. > >Signed-off-by: Florian Fainelli [...] >diff --git a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c >index 2d4f213e154d..3814ba8af517 100644 >--- a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c >+++ b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c Please remove net/switchdev.h inclusion from this file, you don't need it any longer. Otherwise, looks fine. Acked-by: Jiri Pirko [...]