Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp595189ima; Wed, 6 Feb 2019 05:23:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IaAa4aq4uJFl3BqrJzE4ZLoRFVgjHXiqpf+EwK0sKBmKrsDKJKmLD1Sb5koGdQmLpnYL5Dn X-Received: by 2002:a17:902:7e0d:: with SMTP id b13mr10818569plm.154.1549459405982; Wed, 06 Feb 2019 05:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549459405; cv=none; d=google.com; s=arc-20160816; b=Y3J1orGUhfrUXuQvJ9V5bRaBRjyX+8Xb0YSW8iQV+sR6G1/ftM8UD5Kb7SY48SFPTu HcM5H66SpYJIEq6f/IidPc74XEXP/BSOHHPBxUYBR7O4UZFR1/2mfTrOSA4QuFoGad71 Rp+kfd77Jlx8g0CM9utoa8h8CxJzTkYRtEpGlL90CAvOFhYG28Njo/XtXw/gw1zDQlJb +xFGcBpZ1brnHACLWay3hgStBXR35WgOxl9+HMQGOvb4I54T4oSUG6wTzh5N+KxVc2pz ihkTcgm6ABa7YgcXI3SeHJdVbbhMqfBFE3BM/2sXEyBTuC7l2hNQ0YS3xJNSr/P1EW61 vimg== 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=oVihDgGO8uPGgBvemmcV9N9LOXygeTfE8hKfRmgbCNI=; b=YsYoD+UTRlVfymE1ZB9ppRDta3wDaVRsuh9GmAXK6/OaamAVy/t7CWB+4C1HW8HmgJ t8Fz/7UdrJiE7Ob2gF5vfjXJUM3a0NNHdTJrDq+yQj85CsibXkD55VvyKkpQOf666xfK V32a9NsUpLO/xxv0kqK1uvOy74/6YDWqvVh5huFU/fAfeMVTTyOJ6bPijwSTLOtS5IOz 5tsiCTi6606/h4CROpYEa5Ms/pe893ShNgrWmfZ163dpy5BJJKxHGpLDK4mfqL/TMBMh q4XiHNrz6tiJYTDYPHvYVApcgYf6YViFSu/9esyTRgvBts+hQW/84NwHyDEe7OI1lCu+ KjKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=fUdiZvIM; 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 a10si5829439plp.167.2019.02.06.05.23.09; Wed, 06 Feb 2019 05:23:25 -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=fUdiZvIM; 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 S1730783AbfBFNVN (ORCPT + 99 others); Wed, 6 Feb 2019 08:21:13 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35691 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730205AbfBFNVM (ORCPT ); Wed, 6 Feb 2019 08:21:12 -0500 Received: by mail-wm1-f66.google.com with SMTP id t200so2709916wmt.0 for ; Wed, 06 Feb 2019 05:21:12 -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=oVihDgGO8uPGgBvemmcV9N9LOXygeTfE8hKfRmgbCNI=; b=fUdiZvIM+AdctwXpSn4r2AI3rsnnC5SNUE04bsqrNandgOCUM1ce+pFhsUKn+Osipn +9/PLKxh79WX+fh4bmwLsAvhoA+k84aMP31QPDE5fHvojFjgsy48+bPRtWo98OQx5woy xkYXOBZr/KmTWrIGqN23XtXCKDJ40ctzrbsKut76o/O/J7T7WcsrlHFNPYE4nTf1L/v2 QH/H17Kxwp60h6LYg1Hvdqh4xSh/BeMj3N8GnzXlXYGgigOEKrnL2QlWtN/5Yq4uRzwg XIQcPganwOzz/IqP9hVvYlzqEs+T8jrJK56d78PpV6lYB4JH12u9jGQhI+5YrY4SLQth pQoA== 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=oVihDgGO8uPGgBvemmcV9N9LOXygeTfE8hKfRmgbCNI=; b=I3Cz8uwuhJCpX9UtvyfvBURDyy49Zo1LY4jG1dgHyn+mtSx9Ctv1NFMnSclHo8qG84 9UtPO+6QGtPynayTeOg+m/uXxobuIlHdBGUrWDM9bNHBkmBb7MA+lIX21Di9qU9+DVHj ibORu/Lu6/4LFzb2mIQN8dSvOLU7cC7t8dg6KoLOESQD0eATr+iDvjEtgOwn27ZIvwid Zl++mbvyKXr0JbN7SlLzm1RZQPwCurTTtEflIWo49MgHz/x0VnuoN/UTgCvT3Kh9C/ou wodSL9zZ2Qj/NgAzNtcSt231du7X+fj6A07j4gzmwTKWPmZRNa07gP7Eju3h0Ixw3Sox TQPQ== X-Gm-Message-State: AHQUAubJojwk7LKC4dQcC+YxOzk3EObMQ6c/vjOAR6wNRssqNPQMraYA TDLoF+0cY6lKpwGTMLZgdVZ6bw== X-Received: by 2002:a05:600c:2143:: with SMTP id v3mr2005686wml.120.1549459271431; Wed, 06 Feb 2019 05:21:11 -0800 (PST) Received: from localhost (mail.chocen-mesto.cz. [85.163.43.2]) by smtp.gmail.com with ESMTPSA id i184sm15382806wmd.26.2019.02.06.05.21.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 05:21:11 -0800 (PST) Date: Wed, 6 Feb 2019 14:12:00 +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 04/12] net/mlx5e: Implement ndo_get_port_parent_id() Message-ID: <20190206131200.GE2189@nanopsycho> References: <20190205235326.14600-1-f.fainelli@gmail.com> <20190205235326.14600-5-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205235326.14600-5-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:18AM CET, f.fainelli@gmail.com wrote: >mlx5e only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a >great candidate to be converted to use the ndo_get_port_parent_id() NDO >instead of implementing switchdev_port_attr_get(). > >Since mlx5e makes use of switchdev_port_parent_id() convert it to use >netdev_port_same_parent_id(). > >Signed-off-by: Florian Fainelli Acked-by: Jiri Pirko