From mboxrd@z Thu Jan 1 00:00:00 1970 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 253211C2326; Fri, 16 Aug 2024 17:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723827710; cv=none; b=uhjjRg1DFjapL4bMWp27BCCuD/S3FsNYfxzZS2Fp78fl1hC0X2qTfTneHpKfb1PZrrD4uwm0ObRwa+sq7gm24I3BAfIv3lsEvafUMjnA8E9Q3xQYLlhUO8Gasv9XAotkVK92RFQGtvfgwMcGmkvphdRaXG9th/2Xb7DPYPgl0Kg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723827710; c=relaxed/simple; bh=v2kzBBRptVNV1+RRu9YabyIo3w1DpQo+MXl8LfNqrJ4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QCcC+Glc7lyJq6x1rceJlYzdqAF8kZySypQGHWN/eNfnB1pKWn04hRcIxqmAsmi/MxJEIE9Fzwpd6DdreXsGfiXlMiiFNrmE6Q00p1EI5DofCF3irZ8Y1PgPV/hamT2Is8iIVVbvkZc9Yqb/5gPRXuMLXfJSbjNCp1qDcFyjGQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HxyHRms0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HxyHRms0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79017C32782; Fri, 16 Aug 2024 17:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723827709; bh=v2kzBBRptVNV1+RRu9YabyIo3w1DpQo+MXl8LfNqrJ4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HxyHRms02cXyeyBA58z6wZs9gc3eDrmeqd24c5QHmiPb+hAPF2oiTRbWfVzCC7Req aYrIRd4qJlFUgspUgOhFqvxqpE/AtiiQ+0j7I9oCnK1SIli3k5vOiHo1tt9MfK1MR9 xEQ81a0f5oB9ZdVyruib4cT6ERamzxV8/CD3pk7Ay3lLOJuYXRuR8xNaJNGryJRw6+ 3CWux7fP29iLay+xHdH3eiLFPtUjVOPeAjx1MdU8iIX+PNal1M5dAFgayMywPXxOld yC+FAJjQpj9uAG7pkeiWGosncboF/u+tpbnw3wV+3g7DbuzmM0jht7kg1tWtH/7+ce QjHSA5rnZmmGw== Date: Fri, 16 Aug 2024 10:01:47 -0700 From: Jakub Kicinski To: Parthiban Veerasooran Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH net-next v6 10/14] net: ethernet: oa_tc6: implement receive path to receive rx ethernet frames Message-ID: <20240816100147.0ed4acb6@kernel.org> In-Reply-To: <20240812102611.489550-11-Parthiban.Veerasooran@microchip.com> References: <20240812102611.489550-1-Parthiban.Veerasooran@microchip.com> <20240812102611.489550-11-Parthiban.Veerasooran@microchip.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 12 Aug 2024 15:56:07 +0530 Parthiban Veerasooran wrote: > + if (netif_rx(tc6->rx_skb) == NET_RX_DROP) > + tc6->netdev->stats.rx_dropped++; This is a bit unusual. If the core decides to drop the packet it will count the drop towards the appropriate statistic. The drivers generally only count their own drops, and call netif_rx() without checking the return value.