Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp668038ybk; Wed, 20 May 2020 09:01:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUBZDI3vSsL+qQSY9VAtybBrLOVlXVx7LNpUn+FD49VA3yvraNUAzYeqcsrL1AbRek2Gjb X-Received: by 2002:a05:6402:8c7:: with SMTP id d7mr4015758edz.113.1589990478342; Wed, 20 May 2020 09:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589990478; cv=none; d=google.com; s=arc-20160816; b=r1rCG6/gmjrJCM54kWuF8AMMnRq8jy/EUZE/KC9c2duno87u7cx/KZAFO01s4GDpIC KlOz6wKtdOQCxA8RAGVLgjQ6EwSaJpHq8xkecpRBfRZ/2m52IwTjKxE345fCGOpw0TU7 /6AOD8EVNu/WiC99lE2Ke5ggiLr0T0wyDFG6DK5txCxf/QuEWOUuckK/wnypoCsOUU8D 11QHlHrK+cW6pyCpQLovJRrMKkcqw5XU4QRV05u8mJ9pGgsFAClG8v/xSl905jGLkUuk 8iP5+6D7bUM+EaW7x8MMKuBDGlmFneiRjhX79hLvo4hIrXFx1dwJk8ax58Lo0fTHFrCM sPNg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Sno0GmQ/eQv+Rs74eF1UQLVprtgb41HhzSqFhBF9Z8s=; b=ulnAS7NnJ3IQ2xq4I6giCXwzuUBtpXk/BX+B9XGDrOktHPnp7Qnt0yORDkUqSuhGtT VI3f+HdikM3YXlCbHtStX1zZUdRp4OqkASqnlUTeWFytCTTH3spsw4JAjXYwNpfmZ1Hr GIasEMQQzogniUc1QsDZ5xwizYE////Ii08JRxg/K0VdC1UeZRxbu8MWbNh3zT6S6K8Z TA1k5B9Ce24aIgs4bNlrx0O3trUe5tFPKYUCcOijMntrDTrvfD1h96z0tzqJShxQ7ieB no5KlZ2MkCFBOx8/D1Grjyp92voMcvya2WlPMeFbKtIC4Y0ebJisqw1s+QqVHAZ0x306 8Vxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RScn9hai; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr12si1804605ejb.591.2020.05.20.09.00.51; Wed, 20 May 2020 09:01:18 -0700 (PDT) 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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RScn9hai; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbgETP46 (ORCPT + 99 others); Wed, 20 May 2020 11:56:58 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:56404 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726596AbgETP45 (ORCPT ); Wed, 20 May 2020 11:56:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589990216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Sno0GmQ/eQv+Rs74eF1UQLVprtgb41HhzSqFhBF9Z8s=; b=RScn9haiZyNpcqVRHR2LISRYxtfzc/yjpW5MALnYdN7PdzY5h5TJHqhxpdcClvWPcIYAdE Qs8QDbTTKz+LAVy48/4kK8k/i+B4Yp0DhLEtuOlRK1eNrgOtcJaDG4PgKWC6IrJsq1C0kZ 0koJdXL07hlnXmJZAaMzqcLMuLmNbNk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-30-sIzVUj7MM16DmhemM8TuYQ-1; Wed, 20 May 2020 11:56:52 -0400 X-MC-Unique: sIzVUj7MM16DmhemM8TuYQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF91580183C; Wed, 20 May 2020 15:56:50 +0000 (UTC) Received: from ceranb (unknown [10.40.192.217]) by smtp.corp.redhat.com (Postfix) with ESMTP id ECE755D9CA; Wed, 20 May 2020 15:56:47 +0000 (UTC) Date: Wed, 20 May 2020 17:56:47 +0200 From: Ivan Vecera To: Horatiu Vultur Cc: , , , , , , , , , Subject: Re: [PATCH 2/3] switchdev: mrp: Remove the variable mrp_ring_state Message-ID: <20200520175647.32e6f5eb@ceranb> In-Reply-To: <20200520130923.3196432-3-horatiu.vultur@microchip.com> References: <20200520130923.3196432-1-horatiu.vultur@microchip.com> <20200520130923.3196432-3-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 May 2020 13:09:22 +0000 Horatiu Vultur wrote: > Remove the variable mrp_ring_state from switchdev_attr because is not > used anywhere. > The ring state is set using SWITCHDEV_OBJ_ID_RING_STATE_MRP. > > Fixes: c284b5459008 ("switchdev: mrp: Extend switchdev API to offload MRP") > Signed-off-by: Horatiu Vultur > --- > include/net/switchdev.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/net/switchdev.h b/include/net/switchdev.h > index ae7aeb0d1f9ca..db519957e134b 100644 > --- a/include/net/switchdev.h > +++ b/include/net/switchdev.h > @@ -62,7 +62,6 @@ struct switchdev_attr { > #if IS_ENABLED(CONFIG_BRIDGE_MRP) > u8 mrp_port_state; /* MRP_PORT_STATE */ > u8 mrp_port_role; /* MRP_PORT_ROLE */ > - u8 mrp_ring_state; /* MRP_RING_STATE */ > #endif > } u; > }; Acked-by: Ivan Vecera