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 50963625 for ; Tue, 12 Dec 2023 02:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rX4PxeOh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C091C433C7; Tue, 12 Dec 2023 02:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702348232; bh=vp9OZtxkHOBMawczbgBlIcfs5eItU/SvXYiGN1UuZfU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rX4PxeOhikpsA5+G8tRZ4jSgkqNA9A3PMeu4rDbxkILCRkYpiDBYn7QePaL4KYLJr fufd8ZsHHZmSPknRKixNsimN8QwB+PQHdtfOBh72/1fqf8cHiYdb1xBW217Hlsr9Op 37mOX04cRnTzyakAWsIZahUpTrIkPn9iJlMLmFURf4t9dUEsRgnGJ1oOHUmLIaE+3M qcWtyjrmiofRtYmltp/bZkzPNG7x7QqfbuPL0/JABgtABz5uN8kzvOwMuObcgS4TbU ddLMznck0fvmm2wMImfVS8XSeL3h2j5867YTNsl0VZJ5+FKqv4xvphOCTNpcuLCTGd eFG6bIiSF5h4g== Date: Mon, 11 Dec 2023 18:30:31 -0800 From: Jakub Kicinski To: Victor Nogueira Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, daniel@iogearbox.net, dcaratti@redhat.com, netdev@vger.kernel.org, kernel@mojatatu.com Subject: Re: [PATCH net-next v3 3/3] net: sched: Add initial TC error skb drop reasons Message-ID: <20231211183031.78f6ffa6@kernel.org> In-Reply-To: <20231205205030.3119672-4-victor@mojatatu.com> References: <20231205205030.3119672-1-victor@mojatatu.com> <20231205205030.3119672-4-victor@mojatatu.com> Precedence: bulk X-Mailing-List: netdev@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 Tue, 5 Dec 2023 17:50:30 -0300 Victor Nogueira wrote: > + /** > + * @SKB_DROP_REASON_TC_EXT_COOKIE_NOTFOUND: tc cookie was looked up > + * using ext, but was not found. > + */ > + SKB_DROP_REASON_TC_EXT_COOKIE_NOTFOUND, > + /** > + * @SKB_DROP_REASON_TC_COOKIE_EXT_MISMATCH: tc ext was lookup using > + * cookie and either was not found or different from expected. > + */ > + SKB_DROP_REASON_TC_COOKIE_EXT_MISMATCH, > + /** > + * @SKB_DROP_REASON_TC_COOKIE_MISMATCH: tc cookie available but was > + * unable to match to filter. > + */ > + SKB_DROP_REASON_TC_COOKIE_MISMATCH, Do we really need 3 reasons for COOKIE? Also cookie here is offload state thing right? I wonder how many admins / SREs would be able to figure out what's going on based on this kdoc :S Let alone if it's a configuration problem or a race condition...