Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3032596pxa; Tue, 25 Aug 2020 09:37:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztwq1Ya4WMoFNungVexMgZCnWK3FJnVB1pRpXlnsiJkir6e3txyfCjjJj2GWI0z89MFAHA X-Received: by 2002:a17:906:2a14:: with SMTP id j20mr12102882eje.376.1598373434411; Tue, 25 Aug 2020 09:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598373434; cv=none; d=google.com; s=arc-20160816; b=hHPQs+3zh5uv97Fe4ytMcTLFUJsin7YHvWvZK1inRVkWXXi8LBjwmJvnUhepWeC/lh uHf4E00PmPy9F963zsFBfGWbIno8eXMPhFKrSYgbIcXXYmPKDusSYcGHHlh/sq7z5mES k/vPGgGdyRfOdC4ErV2DsVJVAXCSVdI8if7zhO9174BuUiqmzSAkXlPIIhw94MOKJ/3N ImgVCRN+XH7u7+YgxRatcEdNod4aujoTt/BeLz+vCGTMtH9oWus6MTmsItM4a5OMXlS/ onyFbIerrfKzuxi1vN+bQH8JUr7qsjHXoh/qWHqdxsGIlklq5lRhkmY+ckoHFZtNQt3o Dzqg== 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:from:subject:cc:to:message-id:date; bh=NlMPBiO7EYU/Bm78AG3nZ73a5Vp37XKuMGJ+Luc57sw=; b=s4fFF7ZnDAoozNRCNN61mRS2JA54Fhjsnldhwdam0eX0rgN0bI7n7AqrGjecp4KFRc fmQl9Xk2OHL8weRoP6B5KbsOntagpTm8a6iw64dPrhU4O5q5b6TAupFAV998L6B42Sma UwJr6gHoNaEDA4TrRwGStwywebP7iMInNWPx0FEgkwzls570dra7WLNkc9PzpZP2qRWz fl4tLtmZ2Gbc5nDJL0BqzEHG/6xWA7IrRTQ51d5CmLrMwr4sIHUOiZWcZggCJhbJ1Zhn LIiP3TUA7NJHTcCzOsJ/yC8ThmWdvypUHLbmFJdN+D1OzdGbF6EtapYKS8tbvznlmb8a OIWQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h27si3670881ejd.317.2020.08.25.09.36.49; Tue, 25 Aug 2020 09:37:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbgHYQgI (ORCPT + 99 others); Tue, 25 Aug 2020 12:36:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbgHYQgG (ORCPT ); Tue, 25 Aug 2020 12:36:06 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 192B7C061574; Tue, 25 Aug 2020 09:36:06 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 64AE2134A0E3F; Tue, 25 Aug 2020 09:19:18 -0700 (PDT) Date: Tue, 25 Aug 2020 09:36:03 -0700 (PDT) Message-Id: <20200825.093603.2026695844604591106.davem@davemloft.net> To: m-karicheri2@ti.com Cc: kuba@kernel.org, grygorii.strashko@ti.com, nsekhar@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net v3 PATCH] net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid() From: David Miller In-Reply-To: <20200824170100.21319-1-m-karicheri2@ti.com> References: <20200824170100.21319-1-m-karicheri2@ti.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 25 Aug 2020 09:19:18 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Murali Karicheri Date: Mon, 24 Aug 2020 13:01:00 -0400 > + ret = cpsw_ale_del_vlan(cpsw->ale, vid, 0); > + if (ret) > + dev_err(priv->dev, "%s: failed %d: ret %d\n", > + __func__, __LINE__, ret); > + ret = cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, > + HOST_PORT_NUM, ALE_VLAN, vid); > + if (ret) > + dev_err(priv->dev, "%s: failed %d: ret %d\n", > + __func__, __LINE__, ret); > + ret = cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, > + 0, ALE_VLAN, vid); > + if (ret) > + dev_err(priv->dev, "%s: failed %d: ret %d\n", > + __func__, __LINE__, ret); > cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid); These error messages are extremely unhelpful. You're calling three different functions, yet emitting basically the same __func__ for each of those cases. No user can send you a useful bug report immediately if they just have func and line. Please get rid of the "__func__" and "__line__" stuff completely, it's never advisable to ever use that in my opinion. Instead, describe which delete operation failed, optionally with the error return.