Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3136387lqo; Wed, 15 May 2024 00:11:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFycVKJ9QXhOG7dFHY87g/YUmcXrN7v5dWkBjbTBb9D0mTSXecsNkjhkfFxIX9dS4VcMJTc4ppiHURcv5W+wFXMozp9xzL7Vm8KCWk5g== X-Google-Smtp-Source: AGHT+IEDZfrC2PDKSQ6lKs5Ru+ztwRh6xeeiyuBWy1cEzH7MrkUlQ6bDUHTqaWA6BBUxw5wNfmKx X-Received: by 2002:a05:6a21:191:b0:1af:b0b6:a35f with SMTP id adf61e73a8af0-1afde09f3bamr19183919637.2.1715757068154; Wed, 15 May 2024 00:11:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715757068; cv=pass; d=google.com; s=arc-20160816; b=lFlbTwEXa9i42pnlaUs2pFWo/NNGZiZ41PSh9L2I3SvFm0UfuowrHhgpMOcKADR8+X 9EXCPiwV3eT4Ilm37iucEsR47kSj8lSbsEhINSQZQVnlmlI/FFJ55QS0rRV+ddTr6RKx DMnCDcMXOkzODnLRa67aw6mqm/VNnNHhdih1aULd1mqRZ4txJy55ZD4TMtiej7/wYidK g6XRaZY4aLz986ViS4LJlk4FmG17WZM7IMr+17o+sRff75i8znxTUVPTG5PsLUuOpSyz PKrW18P1C7zovWGYZ4W90bBNCT+wMPIsT9S1qddDYDN8ZpTWlC4vX2MR42gMaJwQYqxe 6Lvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=qZEnpACq0iHTaacG6FZZEyfsiJPcBQ6mk9fV3PhjltU=; fh=8ojAZB8vJW6qv9pzGCXaRa4Ol9Ak2S2++msUodg9FV4=; b=PmO4TvaW9IgGcc+aWEKUdBez/wDtkAOxFEURQFQeuA8E/SXp9vy9l4MjuF4ABJh7ot Gva/4xgfyrtdpHSGN1P/YF8Hd3zibPn4nf2NqvR9RFfcybkFFzUwYzpxi0PSU5q3v53C TpEBxWW/vgNPUZpODV1Lx6cKqYJtTk6F2gh+L3nzOzujcNGDQZ08cmJyeUz/8nYLFGJs PMYF4w1Mw0MTLRlJiT/0qqFR1s5ur9XllG9QzqIOrCPJfwN+46fSCEgYHxHGbse4fXxP Mqi3hMIc5WLjF9GVEmBYKCka1NM0qjFNrLqtirf07LlS3LGozV7rvLhFnzs93T7WYMTS 609g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=wAOE8lha; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-179546-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628a5d483si15360208a91.74.2024.05.15.00.11.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179546-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=wAOE8lha; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-179546-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D9B628160B for ; Wed, 15 May 2024 07:10:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B44DF4EB23; Wed, 15 May 2024 07:09:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="wAOE8lha" Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D9054D58E; Wed, 15 May 2024 07:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715756951; cv=none; b=a0orZw1Y0PoJbeAjRxes7Sf5GFkbaPUp3S3DerH+x8bRbi6A6wMGpRNeIB2uOWXy7xnfMATpk2FXOPNa5ZEnBn9fT5fg9DVLSSpFshxEDYSPhJPfq5PhNunUFIP55RUQe35bb1XW5T6vqvSvSNFKpNoY3JD9dRDCR1+fnjFxhAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715756951; c=relaxed/simple; bh=TlijGYMDNzqIG7iiD3qAFvS5QTO9ino5t7xI4ecx6I0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=V0ikw83z1+g0pey37ZUAThfoKMjb5Jl+dL3ZwY/D3an0qlKX5oUIwldCPV2VKlYrTI2pQ/30tt6+xGOuZ8Q5S91qiQv5LeoJC8VhlBzL++UaAR4y3DTniPH1wmmoLeLc3MCVH64m4JV4BKysgug8H4lXbeMSufVxUG0Yufpp0eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=wAOE8lha; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from wsk (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1F238881C8; Wed, 15 May 2024 09:09:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1715756947; bh=qZEnpACq0iHTaacG6FZZEyfsiJPcBQ6mk9fV3PhjltU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=wAOE8lhaMKWtilGri2uI01elUkjYFpu3dtgegVDoPB01RXTQCESJCG3cHfUMuHJtP MY6X1Phy8qI9b8a/Cf79fUpmxkQj1UI3F9iZDaVkj8YOsOlehw2tMJ/5eu5LCWOc3R 6o3IkRJhXZDT1jmP/p69xOrN9X+pyDrre09E/3ElcwR+geJ+tz0CUOXrp1kNaJYR4X Qtk5WAauBxJnuiT2NXq6bX0PLz7npt1UeR3UO3B7qtfxmcyKWrXrtnjQQDoVcIUXnQ NkuVgz0insnprJYDBELK12tVtNM9cA8U9VmLpW+fV9MTxw2b6wCe7KiOmCrtgo7mUT 1ibyO98tfce4Q== Date: Wed, 15 May 2024 09:09:04 +0200 From: Lukasz Majewski To: Sebastian Andrzej Siewior Cc: Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni , Eric Dumazet , Vladimir Oltean , "David S. Miller" , Oleksij Rempel , Tristram.Ha@microchip.com, Ravi Gunasekaran , Simon Horman , Nikita Zhandarovich , Murali Karicheri , Arvid Brodin , Dan Carpenter , "Ricardo B. Marliere" , Casper Andersson , linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: hsr: Setup and delete proxy prune timer only when RedBox is enabled Message-ID: <20240515090904.477c6b5f@wsk> In-Reply-To: <20240515064139.-B-_Hf0_@linutronix.de> References: <20240514091306.229444-1-lukma@denx.de> <20240515064139.-B-_Hf0_@linutronix.de> Organization: denx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/7vQ_Gdg_fcDO5+YKl6phDUR"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --Sig_/7vQ_Gdg_fcDO5+YKl6phDUR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Sebastian, > On 2024-05-14 11:13:06 [+0200], Lukasz Majewski wrote: > > The timer for removing entries in the ProxyNodeTable shall be only > > active when the HSR driver works as RedBox (HSR-SAN). > >=20 > > Moreover, the obsolete del_timer_sync() is replaced with > > timer_delete_sync(). > >=20 > > This patch improves fix from commit 3c668cef61ad > > ("net: hsr: init prune_proxy_timer sooner") as the prune node > > timer shall be setup only when HSR RedBox is supported in the node. > > =20 >=20 > Is it problematic to init/ delete the timer in non-redbox mode? It > looks easier and it is not a hotpath. My concern is only with resource allocation - when RedBox is not enabled the resources for this particular, not used timer are allocated anyway. If this can be omitted - then we can drop the patch. >=20 > > Signed-off-by: Lukasz Majewski =20 >=20 > Sebastian Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/7vQ_Gdg_fcDO5+YKl6phDUR Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmZEX5AACgkQAR8vZIA0 zr1lTAgA2ENishaKFuCVLs+wjmiwd631kRvCT/CrhFlZee0BvnKzZt8kCInlqXHz 87nox73yEmt+X7K5j+IvZCWLgJlrlhkqmeJRfubl4/9p7XfAraK5z+jrCt3PlhRQ gsNSMHRcthViR7aluoVSbWWjuYH04CjKejrW1fxIm8BHVOVFMI2WU/dnm0UCTetM 19XhJ4MK+u9+doa9jGekd1CHv39U67jx7bhkOx0FR6j1P1/ye0cg5JOUKP+CwLos auEtJMO9taESL6ptJB0JOmNLycJXD9HROgpALwSkgBZ/VAfvfaes0Y8u4G7EIfW8 P2+Tl9nI+DLm2OjU3V7IMXrQnO6ARg== =Dwv4 -----END PGP SIGNATURE----- --Sig_/7vQ_Gdg_fcDO5+YKl6phDUR--