Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1411227rdb; Sat, 23 Dec 2023 05:56:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjAXAQAeJ3RSmUwTQ8x1A+pucq783sNfP9CwZd75RAJTrjHr7/OtZdtFBQcGJSbNxUN4i9 X-Received: by 2002:a17:903:1205:b0:1d0:c502:e09d with SMTP id l5-20020a170903120500b001d0c502e09dmr3082235plh.99.1703339783179; Sat, 23 Dec 2023 05:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703339783; cv=none; d=google.com; s=arc-20160816; b=WQ+Gu/UhWpIcJDqaZJLBRrD+r6io3iHcsm0sY5L0kaKNFh54sZ/HlFPRF793S6MgiW r4qyBN+xWX/RRiSjWyrJxaFIB53Ny01kjXJmxDc7DQEqKQTZyPUUtP/REICn7nOYgN5K tDhBl+HaoURpGYFZYhi076CL+HY7i2F2pUmPPLIsCIyCizH+D5NCAYBpwhetWsha66S3 7cPgScvxazqT3ri3p5HOfd17pFO7dUZ958jt1ZdstJpl5n55G4xaeeExE7t9Ug6Fb/u1 5sRQnp+OLfs2kKnqT2epK7QxC3iyX14rx12ZNcuSHc+QpCOM8Z0Sd1xzK6hs78OSIG1o mhng== ARC-Message-Signature: i=1; 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:date:dkim-signature; bh=nuubBkfHMJfLXH7LRKp+mpWw8QTQxUIzPqqL28NbchI=; fh=spGDM7QdFtKEkLiI6UiHFaFM3kEM4k3bJSyV7vBhKbg=; b=Benci60uEbIQ5WpvtqFA0DlhbA/AP68rz8GYFkGrfZsP0c7pU4wuu7vPRIuN8EZmJk UCcnrmtXgB7B+nR7jEQWqRLMNl+rQXrWDepJckHMmG1ICD3cshDH3xJ7zlHDSkwhvyiv jvPTpxOwHOA4rXgAwGYqpUwIgvyOoofHM9Oq1zCBahF2qHXMb44+wr023cQ77lclv09N ElW1JskYpl51OPl/EhYSnDZBPZfsQHv9sJooRrb5EmVP6opeAOUEwADJUCGWLkQCfjnw PCxHMr5dy4hrmJ/dlPaDZ3aJ+W0NPpW8OXfdMkIZzwVQ0HGwIQVMGb4sYuRIJyT58tiS ClMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F0USso2l; spf=pass (google.com: domain of linux-kernel+bounces-10435-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id iw19-20020a170903045300b001cf5d537eb6si4884957plb.190.2023.12.23.05.56.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 05:56:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10435-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=@kernel.org header.s=k20201202 header.b=F0USso2l; spf=pass (google.com: domain of linux-kernel+bounces-10435-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 D0EED282D20 for ; Sat, 23 Dec 2023 13:56:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE3D9DDBE; Sat, 23 Dec 2023 13:56:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F0USso2l" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E073D11CA3; Sat, 23 Dec 2023 13:56:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4ED9BC433C8; Sat, 23 Dec 2023 13:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703339774; bh=402FMcsFLXTqiwyZScGBRIUGS4WdpQxLxaKJLbakZgo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F0USso2le2eZ6W5yiS3ameFhrGVcs/wFTu6sS4H3Wgws6f3HZ5DzD48BDmEX8+rN9 syg2nhieCnSpkaqNVqk0JAQ25LR3fAjjemoSbS1pArgN+r+aZrooNJEQG7e3sq9Kro obtuHJ3VclUqZyHYEbkfWoKo2lby9oGtn6zDZSvZM7zC2cOtSI8YlmbdqhHlR8w/TJ reJ0Hn9MeXv5xHTyHflitfMw8Imdiu4hDmINru33Mf8StPuW4LvcJII6YhoSV7E2EE yIiQXCOcqatX9WQA/OGzUMgBlV/SyTx389uNpOZmF0GtV+JUv+rLzgpG2hWqXTgIaA D6w062dsJGdBA== Date: Sat, 23 Dec 2023 13:56:08 +0000 From: Simon Horman To: Sarannya S Cc: quic_bjorande@quicinc.com, andersson@kernel.org, quic_clew@quicinc.com, mathieu.poirier@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Manivannan Sadhasivam , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:NETWORKING [GENERAL]" Subject: Re: [PATCH V1] net: qrtr: ns: Ignore ENODEV failures in ns Message-ID: <20231223135333.GA201037@kernel.org> References: <1703153211-3717-1-git-send-email-quic_sarannya@quicinc.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <1703153211-3717-1-git-send-email-quic_sarannya@quicinc.com> [Dropped bjorn.andersson@kernel.org, as the correct address seems to be andersson@kernel.org, which is already in the CC list. kernel.org rejected sending this email without that update.] On Thu, Dec 21, 2023 at 03:36:50PM +0530, Sarannya S wrote: > From: Chris Lew > > Ignore the ENODEV failures returned by kernel_sendmsg(). These errors > indicate that either the local port has been closed or the remote has > gone down. Neither of these scenarios are fatal and will eventually be > handled through packets that are later queued on the control port. > > Signed-off-by: Chris Lew > Signed-off-by: Sarannya Sasikumar > --- > net/qrtr/ns.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c > index abb0c70..8234339 100644 > --- a/net/qrtr/ns.c > +++ b/net/qrtr/ns.c > @@ -157,7 +157,7 @@ static int service_announce_del(struct sockaddr_qrtr *dest, > msg.msg_namelen = sizeof(*dest); > > ret = kernel_sendmsg(qrtr_ns.sock, &msg, &iv, 1, sizeof(pkt)); > - if (ret < 0) > + if (ret < 0 && ret != -ENODEV) > pr_err("failed to announce del service\n"); > > return ret; Hi, The caller of service_announce_del() ignores it's return value. So the only action on error is the pr_err() call above, and so with this patch -ENODEV is indeed ignored. However, I wonder if it would make things clearer to the reader (me?) if the return type of service_announce_del was updated void. Because as things stand -ENODEV may be returned, which implies something might handle that, even though it doe not. The above notwithstanding, this change looks good to me. Reviewed-by: Simon Horman ...