Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp130875lqa; Fri, 26 Apr 2024 17:34:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXq2ncDz/KokdsMIxsPIRAVePZzH0VQIae5qG3GsSg30PnjIKWCu20/doDlgSO8cL7Fy+Eu18bOr9qzi02uKvdEacXHTidNELArasyVxg== X-Google-Smtp-Source: AGHT+IFPChvJUGctMDZDSgrjb5BT30+jCnZpKqDG6JdmMmES64BiHe8BSAcRITB0B3/n5iOobyT8 X-Received: by 2002:a50:c35d:0:b0:572:658b:680d with SMTP id q29-20020a50c35d000000b00572658b680dmr907355edb.17.1714178062642; Fri, 26 Apr 2024 17:34:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714178062; cv=pass; d=google.com; s=arc-20160816; b=bnSoszF7qOturKe7KPB/NL0UtYf6czyTeLi4A03SbA1cjH8aZctt2l02vZIpABC73F Px5YiYdmw/AU62NYsbQJR9uBoiUw9YcnQYSkyRN5VdocpIA44xfhFYLB48nqOLfH7yDy 0Pa6ExlkHrNjOwNHN2MzP9lZJUqfc5ulrPNZnW1Bdi+4pIkP+NNJSQhJoTxJYbyyMMMq Gf6/HR8iFQQJvFAq10f1hTjLbLGoRaPHwGbv2PhmTkbup7D69R0YhCpq1C+KmlHtGGMD yCyUNabfzGh6CbC2XVJsOOdCrxBdHqlk1jru8HCrPl8c4/2FFL0xYjkcNJtX/lEwHLGe DK6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=PwMxMXGyJEvz7K1vOAvol53PDg9KfGmfK9MOxJMF5+0=; fh=c1dFFm7P5DnGlxoIcqtQ1zIpAKQkg3ZQZ7vjqDdk7sg=; b=hi80y9xcJiHIvPQw3uF7jAwgCzSvjpN0E73tmq4BrVl72r/MNSvwwrelABf2w5j1jf vkVE37Nqvcuw3w7FcY7FLIEpsD23bj/9EDkSqcLQFqCqCXkcF4MD7hvxQlWqnKBx8zaw 3uMN59i56wBM0+ccXqH47C7QziPDhtRayM8FUhtBnQ2j7TDKGQMx+RmjHS6pLk9qVnkF rQwN1jBhDM2a9bIKgqBpv4Bvxg6Z1RJIm2DUklYW2fDTJnJDph1cmel4OTRJUAOPtOTn +/pNto8KLw4q3aM/+VWFrAAQM5ge4mvNiZ2AcEZFKGgxk29TnH6vM+kXlu0c469kqmQx ELyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aLTz2TqG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160818-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w6-20020a056402268600b005722b539a51si4816476edd.318.2024.04.26.17.34.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 17:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aLTz2TqG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160818-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 60E611F2215B for ; Sat, 27 Apr 2024 00:34:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D2973611E; Sat, 27 Apr 2024 00:34:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aLTz2TqG" 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 AC81B36AF2; Sat, 27 Apr 2024 00:34:08 +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=1714178048; cv=none; b=OyUVhOq2oO24bH+ZxOKuiWfRaAcD/sIVN0WPBgVWPbiaz5Yf2wcSY4lrHq3v/Ynpp+G6YndxnAVcIMH5Iqup3Y+gZMadxPb8uwx7DX1RuifQxVhmD5YVOXh3wMwrYKtdlWL0oSgv5sjOrLYwWfotmS/oLEV58+5BYkRLF1qPor4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714178048; c=relaxed/simple; bh=QOSurHx8KvEaTgm1R/FTe7IdK1kr1SKHl608kcWCsec=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nWxiI+RlJA41JK4Jz+h8D3945IQuppEPuHFFH1nXHkZpoT+0HR2xgKSdvyozwfXjpiZAi1J2nWI94Xhkus37Rg/BfR86sqnUi1DpMSCywfWfKxSG3V+xS+U74oPYf+hcRO3oMrQSUggDUwzZRQd/iC5wGVRbZR03CBmOOr2vPZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aLTz2TqG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADCB6C113CD; Sat, 27 Apr 2024 00:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714178048; bh=QOSurHx8KvEaTgm1R/FTe7IdK1kr1SKHl608kcWCsec=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aLTz2TqGGC4qRAvxIVAZfZzVvMsgGbIHXcIYLV++JSoHw911q3+Y5B/ti4aPl+GxG zVHVy15rLwy4Hmp84kiJ4VhYhGC2pdWYVNpxnqe98xqJ/1bZvA2oSlDk+8n7FK6m+g D82t/qPPcsyzAjYhb0azZln/qaVNuyghiceYAX3E7D0O5n8jfFV7ukQc0FnmJkYPzz lh7bRJzO3CGeSIiJuhCYtm24a46QO+PVwgEo7q9lnQo4bH5xTOUjCdOXX83rHz6vVH zc2O/Saatf8noA50lf/jeIpYIUqUCHSYR7AcTR+R4p941tShlIqZ9Xv5JZUbnLlhUi i0xlT6R6kKOkw== Date: Fri, 26 Apr 2024 17:34:06 -0700 From: Jakub Kicinski To: Joe Damato Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, tariqt@nvidia.com, saeedm@nvidia.com, mkarsten@uwaterloo.ca, gal@nvidia.com, nalramli@fastly.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , "open list:MELLANOX MLX4 core VPI driver" Subject: Re: [PATCH net-next v2 1/3] net/mlx4: Track RX allocation failures in a stat Message-ID: <20240426173406.3b2526d0@kernel.org> In-Reply-To: References: <20240426183355.500364-1-jdamato@fastly.com> <20240426183355.500364-2-jdamato@fastly.com> <20240426130017.6e38cd65@kernel.org> <20240426165213.298d8409@kernel.org> 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-Transfer-Encoding: 7bit On Fri, 26 Apr 2024 17:28:03 -0700 Joe Damato wrote: > Ah, maybe I read what you wrote incorrectly in your previous message. > > I think you were saying that I should drop just the > > dev->stats.rx_missed_errors = dropped; > > due to the definition of rx_missed_errors, but that by the definition of > rx-alloc-fail: > > alloc_fail = ring->dropped; > > is still valid and can stay. That's right, yes.