Article View: linux.kernel.netdev
Article #16592Re: [PATCH net-next 08/10] net/mlx5e: TC, offload RX queue mapping in NIC flows
From: Alexandre Cassen
Date: Sun, 15 Nov 2026 09:30
Date: Sun, 15 Nov 2026 09:30
27 lines
9524 bytes
9524 bytes
On 11/11/26 20:12, netdev-bot+sashiko@kernel.org wrote: > [Severity: Medium] > > Does this guard catch every earlier terminating action whose destination > the direct TIR would override? It only checks attr->dest_chain on the > current attr and the HAIRPIN flag. No. v2 refuses the action after any terminating action, ok included. > [Severity: Low] > > Is this read of priv->channels.params.num_channels meant to be lockless? Yes > Should this read use READ_ONCE(), or should the check take > priv->state_lock? Neither. The channel count can change right after the check, with or without the lock. The commit message covers that case, the rule always points to a valid TIR. READ_ONCE() alone wouldn't quiet KCSAN either, because the writer copies the whole struct.
Technical Details
Message-ID:
<5c2301d9-d62a-49f7-9d0b-87a7c254a514@corp.free.fr>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363629-linux-kernel-netdev=dewy.ruReferences:
<20261109131039.959438-9-acassen@corp.free.fr> <179442433199.2199510.1112413550328435081@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363629-linux-kernel-netdev=dewy.ru From: acassen@corp.free.fr (Alexandre Cassen) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 08/10] net/mlx5e: TC, offload RX queue mapping in NIC flows Date: Sun, 15 Nov 2026 10:30:28 +0100 Organization: Usenet Network Message-ID: <5c2301d9-d62a-49f7-9d0b-87a7c254a514@corp.free.fr> References: <20261109131039.959438-9-acassen@corp.free.fr> <179442433199.2199510.1112413550328435081@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1763044"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/kowHF1COZvm+ZaTgiB5GHklm88= sha256:ZVghkV0Izu5E7bjFa6NcPybpgyPAV5EmJ/QulZqPAW0= sha1:I9HC4blEl0l9RB3pYRuaI8SKuT8= sha256:xczcO0u26Zcszfojv+1N2Fw/7q0FIhSacdabp37VJwQ= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 41295114978; Sun, 15 Nov 2026 12:31:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=corp.free.fr X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ucvSvDtLfIUd; Sun, 15 Nov 2026 12:31:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363629-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=corp.free.fr X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 5FBA9114967; Sun, 15 Nov 2026 12:30:49 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 00A4F351F7; Sun, 15 Nov 2026 09:30:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794735038; b=c1bdYge7lmebZvsXmcD/MSCCZLvRzlWrt+HbIg1Y/RFXkmkyirznG+/0e/elW/V6u6p7 KvXzw4ARFCQKDXgbhC9KL4rNCb1+tcfA8K3L0ZWC/sTPXr2osddpYSVD+2RixXnNfKiI3 kzgkrMsrK87hYe3+jUVwwjY5PWiTpXsAkf+zkR1ZltSVt5paiQ8nSgIkmcWsBcWOlyD/W k/vsM5CEF1pVovg4vAxVRWXYuCoa+Oj/hVOetqyDbQDcAvH8s4vw8dDBJpGvsFSAN4rq2 mpuMaDSmthosMz85MDnN+QW7oAJEi99h7TavZUPul6T4JO3vPLhkqTUOXIELasGPGtQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794735038; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=BrpBf50Shuz5gnHmrmk51CMXzOUhCrMyBZdF/LZhFnU=; b=lDQwTY9B3PDF1xGbcNB6NaXq68H8VlV91CiQfAqG7ihnqfBQennJftq6mUiLRcKI8ws8 khEupYkh0LTy1uGMdimpR/SqIYwfiTdPxxeri73mykATyxf7onw+6IvXbx7eN40bjUpUI rOaVHTUMvuzoZNfAIjQur8YuM1+bHhV9MOgEByin/jUFNJBxBz930Z+QqqP95AD11IOFt IlqrVyx2z75zFk/tbO9cudlEeZhPhAIFpBPzrJDyuwqHlJI1jUw19wuBUTxdRK+zfuN1D 6goP7RXRwjXXW2EjkG57Ye8ltsO2gEVfl5DjueDETEzZEpJyDlMo8DesaEd3JkZ/Snw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=corp.free.fr header.i=@corp.free.fr header.a=rsa-sha256 header.s=rcs header.b=o3C3wEyP; dmarc=pass header.from=corp.free.fr; spf=pass smtp.mailfrom=corp.free.fr; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA216606A329; Sun, 15 Nov 2026 09:30:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=corp.free.fr header.i=@corp.free.fr header.a=rsa-sha256 header.s=rcs header.b=o3C3wEyP X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=212.27.60.169 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794735033; b=dYNuGG3MLPa6pO5LC//o1T9uVTciEP6fpp8BxdBA7Pb38Plg5VMJ4LPPOOE4Txcv4UPD YSjalIxfAg7od+jJEu7U6RWBWPnBKdVEYcMVTp1r+u8v42YzGWHXdZFWjp+yxDnkiFoUE bTqKuYGPGoZ7uJ7HYSPUYJ+GT8KiNMrGhJDtxnYIDjnaJ7ZBFpO176/dVNmGkJJdtjIW2 jgdBbNuFipnkJMythDdNgCXYBsLiciuefQtv9ZSg8eZITV+SnDLGDJCMLUveqoIzVJGrV Cj1xCo//9bbcgZiIXmhCkDHf7Z9zqGdJi+GiqMEodJm6ZvEEb0zXPTON4onphCO59Ew== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794735033; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=BrpBf50Shuz5gnHmrmk51CMXzOUhCrMyBZdF/LZhFnU=; b=19ljfOcUeKDDXGlsEgnq8AuI9Ud4oEieIBRVGAeiXKgX1hEZO9CmjygIBru06Sg31cQW CLI0IQiTm7/HFMhd8qhRUw8CQPo0J8piB0I38dyydAHNzsG8r2/11CjYBJaefV2yoaLwX /XYbMxGUSXUceekIRdGEnTFw6hVxekfgKwI0Pfn8lh7U7vWI1rQygvCxgAYvZUW8NC+0k 34DeGyL3nQqRtyvnz9sxbSYo2Cva8DT5+kO1jHapvrDRm9SwUBzey/rBYxpG+fd/ciNZI ILazcbzQxhcIwJBHUdtrtfADO4ZaAc31ZhKMs2uvVSbi/zLmaK6uVENTmn1j3+KEzpA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=corp.free.fr; spf=pass smtp.mailfrom=corp.free.fr; dkim=pass header.d=corp.free.fr header.i=@corp.free.fr header.a=rsa-sha256 header.s=rcs header.b=o3C3wEyP; arc=none smtp.remote-ip=212.27.60.169 X-Received: from rcs.proxad.net (rcs.proxad.net [212.27.60.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EB4C606A31D; Sun, 15 Nov 2026 09:30:32 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7EB4C606A31D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corp.free.fr X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corp.free.fr X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corp.free.fr; s=rcs; t=1794735030; bh=/5S/eb2wxut2mjDcbc5EKBu4fo1WIXqEBAbkUVf7T0Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=o3C3wEyPYsMEhWvH/BhEZteDVVXh6vcLc+aFLzmCNklvPpp6jEDrMzRCLA+iS5oJS ku356AqmcjXVENVXX1ydmfTRE4PH7FOMrmRu0jbch2kU0jQZbPld5+dGhIKrAlN/uN SPyJTsAkgO0U4YhFwzRv7qrBCUkZ052zauTFVNORTOUCh251KvRwqml88wRIijuGB+ hEmAlTLGt7rg8fNOQhlxZAQvXOn9fWfmsdqd9OFEYvDdzpurzeRVFznvtV064RDD/B Ds9ZLsIQ4jHdy+sSaNMhFXI4PDqsdQZKDxkRGbc1wR5B8tfH6eWBskeaqJsilX/QCS Mq9w4wHVWa0sQ== X-Received: from [0.0.0.0] (unknown [213.228.1.188]) by rcs.proxad.net (Postfix) with ESMTPSA id BDBD044C068A; Sun, 15 Nov 2026 10:30:28 +0100 (CET) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com, jhs@mojatatu.com, jiri@resnulli.us, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, michael.chan@broadcom.com, pavan.chebbi@broadcom.com, bharat@chelsio.com, donald.hunter@gmail.com, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, dsahern@kernel.org, idosch@nvidia.com, shuah@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, oss-drivers@corigine.com X-In-Reply-To: <179442433199.2199510.1112413550328435081@kernel.org>