🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9177

Re: [PATCH net] eth: fbnic: Report the logical RX queue to XDP

#9177
From: Simon Horman
Date: Sat, 31 Oct 2026 18:33
21 lines
9055 bytes
On Fri, Oct 30, 2026 at 03:14:50PM +0100, Björn Töpel wrote:
> fbnic reports queue 0 to XDP on all RX queues. The XDP RX queue is
> registered with the header buffer queue index, which is always 0,
> instead of the completion queue index, which is the netdev queue id.
> 
> Any XDP program that reads rx_queue_index gets 0 on every queue, so a
> program that uses the queue id uses the wrong queue. AF_XDP has the
> same problem: XSKMAP finds the wrong socket, and redirect to a socket
> on another queue fails.
> 
> Triggered on fbnic hardware (50G, firmware 25.08.05-004) with AF_XDP
> zero-copy: sockets on queues other than 0 got no packets. With this
> fix, a socket on queue 43, and sockets on four queues at once, get
> their packets. On the QEMU model with two queues, a kprobe shows 0 and
> 0 before the fix, and 0 and 1 after it.
> 
> Fixes: 894d4a4ea6cb ("eth: fbnic: move xdp_rxq_info_reg() to resource alloc")
> Signed-off-by: Björn Töpel <bjorn@kernel.org>

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261031183334.GX257209@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354124-linux-kernel-netdev=dewy.ru
References: <20261030141452.1173282-1-bjorn@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354124-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] eth: fbnic: Report the logical RX queue to XDP
Date: Sat, 31 Oct 2026 18:33:34 +0000
Organization: Usenet Network
Message-ID: <20261031183334.GX257209@horms.kernel.org>
References: <20261030141452.1173282-1-bjorn@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2524186"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:136rtt0lQbsb0lQKfsUGiYEHRCw= sha256:I5PPc0yz4dmXQlHJrQJVxOB5P2bTgyjQGgGmqP3zajA=
	sha1:axojOrQlaRFVZn42p8HMF6ANuTo= sha256:Gx9rUj+1tAZ4d6smtzknSnXT3i/ZoyVUsexDeg60KtQ=
Content-Disposition: inline
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 C874D125CB9; Sat, 31 Oct 2026 21:34:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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=kernel.org
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 fWFx8E82RtDQ;
	Sat, 31 Oct 2026 21:34:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354124-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 7773E125CB8; Sat, 31 Oct 2026 21:34:19 +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 4B8C4264F9; Sat, 31 Oct 2026 18:33:57 +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=1793471636;
	b=k4ak9bMHh+ALrj9TQ8ofDNxPfy3IZv3W+8InMlB4HmEdMs+cO20wprLb8uHyCklnkjR5
	 VEkfgcvumrudqNvZRS3qc+aIgGUqiNRvsxcq+03r1iFsIdJG0A8ZVLPTsdcvE6/IqpopT
	 DjQ6PAbYV5kkqbuPHFyiKSM+DFwf82iKpDOEzMc5tHyJOCAT+velpVkuy8WOis/5h6wg4
	 wek/tD/2llZAqFIW06nx/nrg/QUsNxPQw+sJ6H+n/vBk0jUflEmwQ7RVu3h7iuAnqS8ei
	 3kbpplhbeQ4N3NuLBAxxkgHxCMnbYvtEwbBLA9DD4KuBFXOfpTHgdIiIS17g4b3buZQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793471636;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=gUXelQFoAaI5jynLT5aPVvI7AsH4CRynYyPjzWgjXdA=;
	b=Q3ai1biCUzkwGaKWrO5AB55IzE1Hwbh0JztQ75LH7uJ+0t4N/TcQVsyhwKg243+g4XtP
	 QK66lGJS8/qo0NoStT9fTvrKFnHIAWHVGo/EqNblZxDVWQNKoabOMBn6ava5oAtYcg10M
	 ntAxvdohHfYEO2OsTOFC39jYZPjP5JQilstX1hfbwaXGBCN6d+M9+Ma2ijqdPdRaVjVtW
	 tr2ZDrrDpHAtEmpSQEg3/Wjtr3jgPSuFxJCLac5j6BvOWwJfOFATJY8Wc1u8dGfIFr8eE
	 Qq3ib2npKiuIwrYGZaBpt3H/+lXDyiXEv0ywmbhqcqR01+DUA19zxPJlsvpqXoIFJLw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="FQmseRQ/";
	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 82A87606A31D;
	Sat, 31 Oct 2026 18:33:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FQmseRQ/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793471620;
	b=OVjsBgmzgOb70EutCKKfLnyYh0tUInflfiy7HJq3rIAxiaQSRru00gYQlovZfUzC8yiN
	 m6Oi3meH3Jd3o6Y4L11gBUzGb/Y6jrqxhIueVV4+yEIMkszO9++VMd/hRP8yTGEP8s5B5
	 FG3ZiBcEdXHStco3oXNtwLH3iWs1kJ0g4juu+9kjVYmHHKebTag1EftVF17NYMhkLBkrd
	 8Y26iBJ88AbCDcX3a5YwOU47Tm4MVPcjsXMXisavdSjgFyZQFKRNQza4J6pjb7X1VmhXH
	 8+XD7U8Svu3ujxjjIOXCAVgNOCIC63IggqSXD65WHMqW5oKMIKygjT1FspADvlJuH8g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793471620;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=gUXelQFoAaI5jynLT5aPVvI7AsH4CRynYyPjzWgjXdA=;
	b=AyOiORPFu1UanZs1PynYYB50J7By5PKvVGGX03610g041uQJi5eCY/600Ry0cm1N+by4
	 tvHz66mdz99YXDT0DCCMdANc28XyJFKrqyp7gJ0id7ELjKixhqUqCBxQQ5nBxt4kf6LjC
	 DUG4860d81PKygXIscH3tBIghtAJ7Ln4xnr2UuR/2nozUHeTX7iSDRi4VEItRjlLRjOWv
	 lF0Jb9n0+djc97DJ10KcuCdTO3XL9DKZtdLU6KE/vNED8tftup1/sOiSF/I9oE79PhWJ0
	 63yQjDZlUjDdOo0id95DhF6o+yTxOArC0xAxwF2nOK4ZktN4sFfVwPulzDhVGOHIEmg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="FQmseRQ/";
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FC9E606A31A;
	Sat, 31 Oct 2026 18:33:39 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E11DC1F000C1;
	Sat, 31 Oct 2026 18:33:36 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793471619;
	bh=gUXelQFoAaI5jynLT5aPVvI7AsH4CRynYyPjzWgjXdA=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=FQmseRQ/55r3aD8bUbHhXMhbIjAQq301If/WSd9+dxS25rJJw3yGCnUKDAEEaIE7x
	 0eGFWM1fbfy0gYJ0MtZFIqaDeXGXq9ELbUgIRFD5Rv8TdSJvukY2HmH+VNpHwjheLH
	 wyCOo3mcHHIuDcZENu/bK79hgDW+V339LQLmmPLOyAn6lYY1U8wh7IzS+/OPmn4KsT
	 J0VPbuwnt4KfRC8pzR6s91z3MgWMoxaBNR5POfn/kKCwlxPUnZl52Ds8mJb8K1g0Zk
	 imDcyyerGXwK4F4Hax745BrGejU7lYPt+MOanBPUeFuhQgXj3p0TZhyK+InZS6lTDI
	 4EyWW2Xj6KYag==
X-Cc: Alexander Duyck <alexanderduyck@fb.com>,
	Jakub Kicinski <kuba@kernel.org>, kernel-team@meta.com,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jesper Dangaard Brouer <hawk@kernel.org>,
	John Fastabend <john.fastabend@gmail.com>,
	Stanislav Fomichev <sdf@fomichev.me>, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, bpf@vger.kernel.org
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-In-Reply-To: <20261030141452.1173282-1-bjorn@kernel.org>