Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3125308lqo; Tue, 14 May 2024 23:42:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJrFZZEhuPlzfdQ2sZb6VkinTN+pVpuXVLqRve5HF5C0inNNFBwxNTp7mIUqEVoYMWVb6zWOHjjjtX9ygMXxm4ofZ0g6mKpminWYWOug== X-Google-Smtp-Source: AGHT+IGrdtUNODMGdA6d62HuGUmCc6ykhxxdELMwnuFlDRNQV2GmIz4xvfPp3x5L7fAlT9Vpx6h+ X-Received: by 2002:a05:6a21:c91:b0:1a7:590e:279e with SMTP id adf61e73a8af0-1afde07d798mr22730094637.5.1715755324954; Tue, 14 May 2024 23:42:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715755324; cv=pass; d=google.com; s=arc-20160816; b=LPJImFT20s7epeVDDL+96g+d4KcK/kOagf8IPDTz3WYNgO8Cz/SVnbC4iLnOwHV+7D JjYb6SQrvZzqupWtNMm7j8/IL8IcmzdE0nK5jXUfWFz/vRIgpODaEmEykiOHaGsZ7X4I pWFRx+hr5m18mGWB2C2vuEaXfE/l1Wri01rXjK3PIy2nnwmp0ktJBVY0EJaor8lI7xU1 XinMnEZvtEvgokd2n/emUEwFHkKfFlJeW52chPzJSZjeKYRtdXZxHPYOljxGwE54dpvO m+HtvMWNAipY85z93Jk9Eq4poT5EPo5F1ewWDDIssZk1KoFbiLMieKWrlefzwQ7/6Ohe upfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=sio4TZAEBlWZFidC5qng46z8XhrKeWRYfPlszR0wiFY=; fh=/jKRIImuNtwF79CK2dEugopMX+A0ug+s7dyM2lrP6kk=; b=grY69da4J5NL7wNER/k151zyRiqMquzrBo7PuWXvzXmpRLW1oxhbA+iHaraSU9zBH/ /vIhxtpR7pWjoSsvIi93fzWqFpIiyq2x9YqkP4OSasj+nuev1OHN/k8OjPexavQ/VwW2 C33Myx5actMUl6Wsn6spH1thsMJBvpkpGl3nrnJNnbL/z1tl5hmVvcLOacCAOzkW4smD z8hVECuCWLqsPV0ZVTXrxIjQGaEd09l2GV/ZOCVIpqp90V09gI3rWHI31jAup8ibE696 rfcp8PVCaYvPgrAJrYjfYG6jJzxbXtXxk6USbmLnPD0tZDMLqXcylH3/poqMp6QH6sX6 W0ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Pd75HkEm; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-179527-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f676687438si641189b3a.29.2024.05.14.23.42.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 23:42:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179527-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=@linutronix.de header.s=2020 header.b=Pd75HkEm; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-179527-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179527-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.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 897A5282933 for ; Wed, 15 May 2024 06:41:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC4AC3FE55; Wed, 15 May 2024 06:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Pd75HkEm"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="varEdGvP" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82C0D3D57D; Wed, 15 May 2024 06:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715755304; cv=none; b=dveRcIIblKMtOJcfGcTYYKud4vDdQnXDmwjQwpGWGfS19invTrv9e3qgfwzOs5sTdWGMSi2j2w+gnPixIXSKMT5B5N6r6lNzUYluO0bFsNCHT9gQGD3PE2zKvWZBrFd9V4iFK/RPCxd+4/SYXw8WELt77iK4DxAqHcM2E97bR6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715755304; c=relaxed/simple; bh=Ohn1QWuD3hXSwNdh6G51TarJNpVtb+Kw3FSPuiN8i50=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ia5FFsozes7PMod2Y3d+eypdID100pbbnWnl7duq1N+1xm4qRIkOwGf69i+JSkJv63hgjL06jmkxzfVe1K6fDHAhEI3U/48Ltc3PjI/+urK31Wdjia/lyHitQ78ffbVZL0OgC5ZBKi+n+5Qz7HSvj+6ug0SQrh/WrTLJFXukDsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Pd75HkEm; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=varEdGvP; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 15 May 2024 08:41:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1715755300; 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: in-reply-to:in-reply-to:references:references; bh=sio4TZAEBlWZFidC5qng46z8XhrKeWRYfPlszR0wiFY=; b=Pd75HkEm8Fk++MIPte3Ib689xrqTVqJnkvEYJkgsDvUzbpysVYUPHV2/jlMU8HlODuWg/r UHDoxca5tLQEnRxqaT7gb0J9/aApdcCR6lnEZQDiYkuzl2WrGFKgX26tBnSJn/Wf1DAbpI cfYAi6JcKF11x77OCaB59KpALE/jz7YogPZBp4gy1nlDVA+MY+oSIdEbcTiGlB4nxvodg3 w4Julu2a4bC2p1SCdcVTQw7EeGkJkWxVTHmbUXNPVqnKoxeK7+px4MlJjoVLl1m0lmZvU/ cp1qpsiqNvB2yKkF3SNOr1yrtziKXQ+tmtpLLR3xB8e4Z6Mphki6MeyKd64jOw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715755300; 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: in-reply-to:in-reply-to:references:references; bh=sio4TZAEBlWZFidC5qng46z8XhrKeWRYfPlszR0wiFY=; b=varEdGvPU/kzLsy/+oGCdvuJBJ6bJV0koxFc0gab29K7iX/zd0709MV4JyUarw3AP4GDYV eW8ICv2ZuMMqVuBw== From: Sebastian Andrzej Siewior To: Lukasz Majewski 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: <20240515064139.-B-_Hf0_@linutronix.de> References: <20240514091306.229444-1-lukma@denx.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240514091306.229444-1-lukma@denx.de> 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). > > Moreover, the obsolete del_timer_sync() is replaced with > timer_delete_sync(). > > 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. Is it problematic to init/ delete the timer in non-redbox mode? It looks easier and it is not a hotpath. > Signed-off-by: Lukasz Majewski Sebastian