Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6031292pxb; Tue, 16 Feb 2021 14:11:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRrX+URs/2i+3hX/RslllpnLYau55nl2OS0HoHbCKONI7AeONg+QNPqZfgwDNxN00ftoLk X-Received: by 2002:a17:906:8472:: with SMTP id hx18mr21651651ejc.329.1613513499218; Tue, 16 Feb 2021 14:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613513499; cv=none; d=google.com; s=arc-20160816; b=Y3eWYB99HRD2sZ1nhs+hGOZrThlUKBmz3u2Ap0sQoUDBkUv/DgE+RqbUsqX1hyqwqH 3+G7mFn0LQBqCQc5Rwth7Vv6am9mljB9yvb8WNjsxiR4YCUFP83QgGU8qEstPX9WbURk Usqbc/V0zmWs3TiXahV3iBE57vcx6NDmhd0LGr5vhPJdxlkUAQdCf8sOCzzIky6aj/1T hOsbQNDjb9Se30H54Mnlhmi63a4285Y5IUt4hG0/qGhmsIjq71Grd4rNa5/B1I34ElR4 1IdhWFl2Wjvt5ByhFu6VRteEEH6lUisKwlVlbcNErSN1imTl90FcKsy3weXaLw6FUhHU GhsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :dkim-signature; bh=jKZKlflvCuxZ9k01pIi+oVq/98Mgn4bZZ62bsV0jVqA=; b=wel+nVzMwxWzRVObvjOMOGWtpw0bTtnX4k6ksS+trq6oldP6v9aHRZ0DWTJxfMOgR8 FPEigXiBGFqo1+aJGXqr0o/rfBMI65MgHf0Oj0oVY513E3WihjELOH6dqKbL+xCm6Ftp BalIR5dcTfsJmBsdRn2Ugr4k0aKBvk2Ws6oOEOrRNa0L7RrOr1d8qoFE/hBa1AiR7m96 LqciWLIE4qtu6qDozbmLYa0B+n8ttLqjhDz6r9+RXvSU2ukzM5kFkUv5uAYpP/9PT0ZP 2BWuy2nj0CbBpY4wViAIgK+qHupvBxDPaGocu0sXGwtvpLPhLvTXK+Ju3NgHRfzSY9J+ rMBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=uTNo0BKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si725469edr.180.2021.02.16.14.11.15; Tue, 16 Feb 2021 14:11:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=uTNo0BKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230243AbhBPWJa (ORCPT + 99 others); Tue, 16 Feb 2021 17:09:30 -0500 Received: from esa.microchip.iphmx.com ([68.232.153.233]:32518 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbhBPWJ1 (ORCPT ); Tue, 16 Feb 2021 17:09:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1613513366; x=1645049366; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EkdA4P3+6f4nhO1ioorMAXmDvWtLpcJI9k/w4sPLgyE=; b=uTNo0BKNK0GsBCywbJzFzwGXnPEOhAjS0lg6xyByhZuF53Ps6tRwwvuR 0ykHfE/HnIbl4P655tV5ngSoWjvkuyGmCy2FRvtVRc5Tdi9T815GXc7W1 xy3Te/flYUFmbn4hL1WcZuhQ2S6UA/9e7h0wqFdO31mgL7ntpux1v49L2 VlPBXLDl1l5VPFHkmRYqNs3q9PQnhGhotKShv1O0kvjJ+UVkYDtK7/z8V WqK3InvuJOobERrZtU2GIWPBArFyMtbGdtPc2CXAs/3GZ/VMdWkeznx9x dzLOi4wrJIrOvw+nCkaChWmmLDA8t+9aw3eCpUDhu4vqBYFV70fsTCzdz g==; IronPort-SDR: NTohzzE1iJ5dUa3ih+H6KN48LS/39yJACw7ZEXE35cLl0a31yes/NOrGczBjfk7l9wiH4bw/rX rOEWOwLbK5ZdpBg+QbImIse4BTy880BC6oeZ4lEowyENXwNMTEgXnBb+rpqzoaCspckWce5htQ x/FgC+idrDs75NVt2t3tAPJDl/mjGi6Z1ccZ+pVXUhHrHIiMhkMUQw8B3q2kaDWpEJ5COjTZRi nT8NlKNJosYBWk2HmxtL+2GCnTIoq0K3dYV5WsY548Z7fyHf1HO1QRfM+PaE9TmPp74nVngbBH RPk= X-IronPort-AV: E=Sophos;i="5.81,184,1610434800"; d="scan'208";a="115337157" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Feb 2021 15:08:11 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 16 Feb 2021 15:08:05 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 16 Feb 2021 15:08:05 -0700 Date: Tue, 16 Feb 2021 23:08:04 +0100 From: Horatiu Vultur To: Pavel Machek CC: Greg Kroah-Hartman , , , "David S. Miller" Subject: Re: [PATCH 5.10 098/104] switchdev: mrp: Remove SWITCHDEV_ATTR_ID_MRP_PORT_STAT Message-ID: <20210216220804.iadtjpg7r3masi5m@soft-dev3.localdomain> References: <20210215152719.459796636@linuxfoundation.org> <20210215152722.633343806@linuxfoundation.org> <20210216213508.GA32671@amd> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20210216213508.GA32671@amd> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 02/16/2021 22:35, Pavel Machek wrote: Hi, > Hi! > > > From: Horatiu Vultur > > > > commit 059d2a1004981dce19f0127dabc1b4ec927d202a upstream. > > > > Now that MRP started to use also SWITCHDEV_ATTR_ID_PORT_STP_STATE to > > notify HW, then SWITCHDEV_ATTR_ID_MRP_PORT_STAT is not used anywhere > > else, therefore we can remove it. > > Are you sure this is suitable for 5.10 backport? Unlike mainline, > net/bridge use is not removed, so this will cause compile problem...? > > pavel@amd:~/cip/krc$ grep -ri SWITCHDEV_ATTR_ID_MRP_PORT_STATE . > ./include/net/switchdev.h: SWITCHDEV_ATTR_ID_MRP_PORT_STATE, > ./net/bridge/br_mrp_switchdev.c: .id = SWITCHDEV_ATTR_ID_MRP_PORT_STATE, > pavel@amd:~/cip/krc$ e ./net/bridge/br_mrp_switchdev.c The usage of SWITCHDEV_ATTR_ID_MRP_PORT_STATE in net/bridge/br_mrp_switchdev.c is removed in this patch: https://www.spinics.net/lists/stable/msg443626.html > > Best regards, > Pavel > > > --- a/include/net/switchdev.h > > +++ b/include/net/switchdev.h > > @@ -41,7 +41,6 @@ enum switchdev_attr_id { > > SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED, > > SWITCHDEV_ATTR_ID_BRIDGE_MROUTER, > > #if IS_ENABLED(CONFIG_BRIDGE_MRP) > > - SWITCHDEV_ATTR_ID_MRP_PORT_STATE, > > SWITCHDEV_ATTR_ID_MRP_PORT_ROLE, > > #endif > > }; > > -- > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany -- /Horatiu