Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1190369pxu; Mon, 23 Nov 2020 14:08:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHcXDKN+Q7tYzV0wU51zXgTeHsdLk7PLcWwwwGqdZIGlvd0km4r0Fy/7ZEz4LVLm7BTjTx X-Received: by 2002:a17:906:c20f:: with SMTP id d15mr1488220ejz.341.1606169291516; Mon, 23 Nov 2020 14:08:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606169291; cv=none; d=google.com; s=arc-20160816; b=WYUPPZwVP9xqVjSy6CaaBC0zeS2mxnzmWwGanpxt4xXxA3+Ja6x1U1GdB4dbpxpHLW XxBfs2feWoNH6KnUn49e+FnhrFCuwdG6nBuiszEISp0SFIyaupA5nkDlyCQaUqoHctw1 2uhYKJjScThT+sikrSj7Vk3c/8qWiBC+tPthAQ0Jty7lFXZTqz2VzViTFX6WrqXuRuaj 5E/UQWbn/EV6Tv7cIY3KLagrm9ZPFwr8o14pUuLKa6iRFrRNoiGcDMuSU3ug9UsBaoSB d9Ae9bDxF4n99ve9uTSTw7Ptvpu+aKvANAhEsHC9DQ3QwOCzAvqtJqZBIvRrAQMybRbA 6O8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=SeY/MZEUCLBdBDEOgrcZh4gsloHGuDIE0rTXo5rDrRg=; b=BSGTl2q5pXrr2l/GM68drym3CClaOVVP8SWXQf1+3M+Z6ug4y3EBvwbvOBvCQPkE8W N6dDujQ2PXUkwg8mXpHSL59w4d8LLkJfVmaouAQFxbslkydxUUh5sQqSUM1oo4AyqGjS UpzmnlqdpCS4JGztIIkpczSZzRGVAU/9/rLN22639IOXMTHEJF0UqCkYPHPe3SfMu0jw r1NSYCQdsFa13sYxWbO41AquDzmTkfcpq2SWcV+P+7Vz34vuzMS+kjVlovzSsir3XdXI r2i8PtergdDilVu1gz9+dTjp4vQ8MYPdptqAYyzhbAVeBA73LKTi0furcSs3EtevGi9J MQLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZVr0+wb/"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si7427920ejc.166.2020.11.23.14.07.47; Mon, 23 Nov 2020 14:08:11 -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=pass header.i=@kernel.org header.s=default header.b="ZVr0+wb/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732262AbgKWWFV (ORCPT + 99 others); Mon, 23 Nov 2020 17:05:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:40990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729342AbgKWWFV (ORCPT ); Mon, 23 Nov 2020 17:05:21 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 16C5A2065E; Mon, 23 Nov 2020 22:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606169120; bh=WdAxvkzx3t0CR8g6BMeEUxhmD6sgdPUz0+QX03a2Fl4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZVr0+wb/mr6gTAKd84U8e3HJXUPbm0tdqka1eTDALkPvs+S2Vpidd/dunKIU9jpAq brm+GQgx5K9I1SBNCKACcxieD2Em+yaJZcenE2haam1+zXFIwqwaN7M5bALd8IU4si Pr4oEaIOovj7yTAje9r1uYX5z4bqfet3+Z6nov+s= Date: Mon, 23 Nov 2020 14:05:19 -0800 From: Jakub Kicinski To: Nikolay Aleksandrov Cc: Horatiu Vultur , , , , , Subject: Re: [PATCH net-next] bridge: mrp: Implement LC mode for MRP Message-ID: <20201123140519.3bb3db16@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <13cef7c2-cacc-2c24-c0d5-e462b0e3b4df@nvidia.com> References: <20201123111401.136952-1-horatiu.vultur@microchip.com> <5ffa6f9f-d1f3-adc7-ddb8-e8107ea78da5@nvidia.com> <20201123123132.uxvec6uwuegioc25@soft-dev3.localdomain> <13cef7c2-cacc-2c24-c0d5-e462b0e3b4df@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Nov 2020 16:25:53 +0200 Nikolay Aleksandrov wrote: > >>> @@ -156,4 +157,10 @@ struct br_mrp_in_link_hdr { > >>> __be16 interval; > >>> }; > >>> > >>> +struct br_mrp_in_link_status_hdr { > >>> + __u8 sa[ETH_ALEN]; > >>> + __be16 port_role; > >>> + __be16 id; > >>> +}; > >>> + > >> > >> I didn't see this struct used anywhere, am I missing anything? > > > > Yes, you are right, the struct is not used any. But I put it there as I > > put the other frame types for MRP. > > > > I see, we don't usually add unused code. The patch is fine as-is and since > this is already the case for other MRP parts I'm not strictly against it, so: > > Acked-by: Nikolay Aleksandrov > > If Jakub decides to adhere to that rule you can keep my acked-by and just remove > the struct for v2. Yes, good catch, let's drop it, we don't want to make too much of a precedent for using kernel uAPI headers as a place to provide protocol-related structs if the kernel doesn't need them. The existing structs are only present in net-next as well, so if you don't mind Horatiu it'd be good to follow up and remove the unused ones and move the ones (if any) which are only used by the kernel but not by the user space <-> kernel API communication out of include/uapi.