Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp579478ima; Wed, 6 Feb 2019 05:09:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IY6CUw+D5Yg8Md7BgUuoogbdItxLrkFcPwySKdwo1Z6ho145AJeUKOGSq7e5K1Nd44rrfiC X-Received: by 2002:a17:902:3383:: with SMTP id b3mr1168966plc.170.1549458581573; Wed, 06 Feb 2019 05:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549458581; cv=none; d=google.com; s=arc-20160816; b=AjEpgrgLsC9pf7w48mkrVMr58YsegCctyJ2xfHS9xYaP2VzOvZhWnG97yHHdCLnqCS Lk9drdwHMtBkS+5CT88D5+WzQf8z6fX9CV+X/jF/iNJoG+bzHZUffb7/fbDIff1ORgdS 6vh5vj3n9tw3wrfJnIoLf0b9e3chQKaOpDSv5qn44brr6k+04Wj3LMY2UVt3I2N5f0Nf CjH1CQWCLezKDdL1t5+SeLKWZy33m8hLkFb4MUy8Hmqza8K4lHYIwq4JMWnBfgGIcL7w qqEvQbt/Z4FGyrSYoS64j9FXWMPtjqjNQzRhFzSkQ7t6G0GrX/Hn8/dEAtYahSpwHZxo EoBA== 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=P1pOlZW/Id97sp4fAA+2r0hhEC/TTJ/UW1DX4h/o9vI=; b=Zz+RCSVMiwzFg6DyladukmK5b4juKo3OiRv3pA2W9AnfcjQhwamgWs1Ub/3LPl7vpm F9WCJe3jMhy8F0Dm8OUzzhVN6pPFt2mNxV86g6IX5jwQYo2RjBkVLPF+bUvGvftVxaSJ cpQSQgh5Drdg3AATerIR+TtRfLdpmZ9Eb/bS5bXpwFu8yZMr2RNdgsz2ZQOOVOXjZjWf TVxjtN79cmskkwA4ZxkyxOHYBmetjI2R8UMMUf8TJPVYH59ko2+T2PmgDcf8vXM1lA9n y0L+FyorxOnbeiDLc/w8jttt92OTZ5s/8ekME/vDzIydbnDoaA5lycT9AOxLCuNbmpqY pJTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=NM7AywVY; 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 f17si5994500pff.171.2019.02.06.05.09.26; Wed, 06 Feb 2019 05:09:41 -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=NM7AywVY; 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 S1728064AbfBFNI6 (ORCPT + 99 others); Wed, 6 Feb 2019 08:08:58 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45102 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbfBFNI5 (ORCPT ); Wed, 6 Feb 2019 08:08:57 -0500 Received: by mail-wr1-f65.google.com with SMTP id q15so7424051wro.12 for ; Wed, 06 Feb 2019 05:08:56 -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=P1pOlZW/Id97sp4fAA+2r0hhEC/TTJ/UW1DX4h/o9vI=; b=NM7AywVY9VILtjTRV+wZ2glv9suyd8bMBHvMpU3wbOuGOuHq11V17x8MK3F3th7nMa kc7plOaf1EPCWaKUlLhsJouiWGFZqpw5mzpyCJW8IwH1kqkYETS8Dq4rqeLeHrzb8ix9 QCiIhqXrfhmmF5YaML4XcIK7TY3qDkfNjslpyzNoLo3Dqxg7tyd2G03Yk7tOXRk9vdHE EjcPgALv1c+NEU6DA6u3K1th+9kBnEGECABsKpWkGKkbNelI3NN8jT8206CutE8yM3+J 6XQLLa+Q81yeE62lK6PRfgHgufr1wXOsBtrql6eKwGulanOowtiDZ5ctpQpfUWgr3dMW 5EsA== 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=P1pOlZW/Id97sp4fAA+2r0hhEC/TTJ/UW1DX4h/o9vI=; b=SXeVuZYf8SRr6M65sq2kcoYMaJwir720XfEBsPqD+0MXaVodgAl3CsBW/gngKO0HXC VsFs+q5PZyxNdzqjlbgOBh7vOS013x+1m1PTLaBuwS57aRpTj5cxKchuTe3FLBvayu/V k8DgkIWsvzKm6HzAYyLf09+SA5/rXFsbgDE0V+7pBk8TqskV3NwFe7KDKNVkNhgsi62S fs8xtUHA4ftTrf28NUV1/OTM0Wma57DP/Qy8Q7mqDIn+9anCOF+fWuWDyDRDVprKmRy6 YnvlyS6/QEz96Lq1q1tZmFCRbowlYx6A0yZnLBGVlh4vjwhYFIarnmug5p3lMS//OOpX qIag== X-Gm-Message-State: AHQUAub2un2lOhJqVS/Id4LxhDSAsO7JMKMkhAHoLm3fneC+oplchxnc cT/YsSccOO2r5KXj/OiUm5/0yA== X-Received: by 2002:adf:f401:: with SMTP id g1mr8100652wro.103.1549458536006; Wed, 06 Feb 2019 05:08:56 -0800 (PST) Received: from localhost (mail.chocen-mesto.cz. [85.163.43.2]) by smtp.gmail.com with ESMTPSA id q12sm18603496wrx.31.2019.02.06.05.08.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 05:08:55 -0800 (PST) Date: Wed, 6 Feb 2019 13:59:44 +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 02/12] bnxt: Implement ndo_get_port_parent_id() Message-ID: <20190206125944.GC2189@nanopsycho> References: <20190205235326.14600-1-f.fainelli@gmail.com> <20190205235326.14600-3-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205235326.14600-3-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:16AM CET, f.fainelli@gmail.com wrote: >BNXT 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(). The conversion is >straight forward here since the PF and VF code use the same getter. > >Since bnxt makes uses of switchdev_port_same_parent_id() convert it to >use netdev_port_same_parent_id(). > >Signed-off-by: Florian Fainelli [...] >diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c >index c683b5e96b1d..170d2fbbb91b 100644 >--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c >+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c >@@ -12,6 +12,7 @@ > #include > #include > #include >+#include You don't need this. Looks like a leftover. Otherwise, looks fine. Acked-by: Jiri Pirko > #include > #include > #include [...]