From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 698F51E3762 for ; Thu, 30 Jan 2025 18:06:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738260414; cv=none; b=YnDogcLmzE2QNYhA+/JTIPLGy1VV155KAO8a85DQPDypqdFBbFb5Xn7ScooZKvICyf5kqJmLIFfJxSgIBYrPSgWDPgb/7lsGGFiw2UF6fMYrP1OcJXNIoIBxBv6YYYa7jWbtgoVhz9N++LLvk6DgHGdsTYYAM3fTpaoxTh1qHpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738260414; c=relaxed/simple; bh=zr1W7t4KSvfQS76WePuLjXwJuKAeCp9f8rFkbQqNZGQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B8fZgRPe1apX1tM4Oa9leHPKrmV76CeRtSE7UdWI5PEFp8B8JwKA/2Ok2k5suupB+rLMODtRjopvDIErOD54/XFkCaL0NyV29gx7KLzHd95Iry/oeBUJDvu+EK9tp2ZKdU0jx4DYszl3AGj9S56yy8xETwRYJ6XaKjPCzO93K14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com; spf=pass smtp.mailfrom=fastly.com; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b=ktm4cvk5; arc=none smtp.client-ip=209.85.160.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastly.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="ktm4cvk5" Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-467918c35easo15951481cf.2 for ; Thu, 30 Jan 2025 10:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1738260411; x=1738865211; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=RO+KDHSuItRLj+0Z8xqZMTdnxipk8RRX+us7nMFUFMM=; b=ktm4cvk5VONApphqlCmhjHN3+LmKqgBv2dhEtqCiMOexHM6KBurOBAU/pb/OnfvKfj J3wrsGybCGvstCqsy8c9AtIFO9H45YJxKenhWXfZgwjX7N9+BBAorM5g+LknFvRXhpYZ RUTbcUkFVfaKNF44oO2atDJT5ZCe2vU9SNo+M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738260411; x=1738865211; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RO+KDHSuItRLj+0Z8xqZMTdnxipk8RRX+us7nMFUFMM=; b=VGxFhUti7NYduLbNYjCY9WN2uZcUuZp0IjSYe/sY904MR3x5wWYhElNT+kQ+tJ5NNZ 6EqBFPJIBNge4l6T1k5vQLfJkzJijglHT4Pe/hfL7rKpfFw6W5PwyFQhKO/aduSOT/Yk DxHIT4A7CE4li61/aUsOHf4yyuNv030nr9fI5gZUaJ1ZlXEDrIWkEvHW8Un905+402tS 1V3oO9Z9OgcXSxImwG+LAZSIbpuB6isVj2h4k1r4SdUXWEwqP7Co8hwJImZTJLdhhQUt 0PtwTmhYgnzskvOssi78Fwa46oSabG7Qj7MhB35Iwo/sjxfKP/hseCFsIWSKW3fImh1d W3PA== X-Forwarded-Encrypted: i=1; AJvYcCWsD6w9eYFWAsQWo8LuIA8GD83xWH9FJVW4Uagj+cT0Qau2Txr/30e42XLGa4CU1p00hVt5qb2Tr6pL/L0=@vger.kernel.org X-Gm-Message-State: AOJu0Ywv25WBRw1mfsAIms48arqEw6GTDLieygmtbxpd1cBDDmH4urcP ItCOrh+cYXcjnPxXLMxePDh6ipNYWN4iZhF95VCWR/NASIP5zjcVHrhFBNdgS7Q= X-Gm-Gg: ASbGncsnhere0bbC7O24cmVr6g1+63HaUv+mw9zRVVUDI2CjWoWaIqnJJsl2RSzI6o9 gVZ+a8/BgYtky5TWIJyTz0eVz0iZh4U7/7BErlJeGokE3Rg3NNZxkXEZIkfTdWiGA2mNM5YczCq 55QklJcqaqaXAw+Zoe9lzpGnd8r6M2pfdnpY6YXPvUzLcf5akcadP1WA3IQ7+3JfOQkBVMRAM0V 9ziW9u0qqnZvaKrfE1/QL8DU8MZ5rt7aqKgTPrv+o+TlCr0pFyH653dTdxZC9HIiRs3NI5WoP7H yJjGhaHEaiUDWuUrkXA00IQJ1A== X-Google-Smtp-Source: AGHT+IFggQ2gMaMLIa23tVot0OXC4q17UPp6xQWbmuk2qEXfCSoOMxEfOmVrkUNOHVtHN7awI661iQ== X-Received: by 2002:ac8:7d89:0:b0:46e:3538:5094 with SMTP id d75a77b69052e-46fd0b6da9fmr99469561cf.36.1738260410427; Thu, 30 Jan 2025 10:06:50 -0800 (PST) Received: from LQ3V64L9R2 ([208.64.28.18]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46fdf0a753csm9133961cf.11.2025.01.30.10.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2025 10:06:49 -0800 (PST) Date: Thu, 30 Jan 2025 13:06:47 -0500 From: Joe Damato To: Jakub Kicinski Cc: netdev@vger.kernel.org, sridhar.samudrala@intel.com, Donald Hunter , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Andrew Lunn , Xuan Zhuo , Mina Almasry , Martin Karsten , Amritha Nambiar , Stanislav Fomichev , Daniel Jurgens , open list Subject: Re: [RFC net-next 1/2] netdev-genl: Add an XSK attribute to queues Message-ID: Mail-Followup-To: Joe Damato , Jakub Kicinski , netdev@vger.kernel.org, sridhar.samudrala@intel.com, Donald Hunter , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Andrew Lunn , Xuan Zhuo , Mina Almasry , Martin Karsten , Amritha Nambiar , Stanislav Fomichev , Daniel Jurgens , open list References: <20250129172431.65773-1-jdamato@fastly.com> <20250129172431.65773-2-jdamato@fastly.com> <20250129175224.1613aac1@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-Disposition: inline In-Reply-To: <20250129175224.1613aac1@kernel.org> On Wed, Jan 29, 2025 at 05:52:24PM -0800, Jakub Kicinski wrote: > On Wed, 29 Jan 2025 17:24:24 +0000 Joe Damato wrote: > > Expose a new per-queue attribute, xsk, which indicates that a queue is > > being used for AF_XDP. Update the documentation to more explicitly state > > which queue types are linked. > > Let's do the same thing we did for io_uring queues? An empty nest: > https://lore.kernel.org/all/20250116231704.2402455-6-dw@davidwei.uk/ > > At the protocol level nest is both smaller and more flexible. > It's just 4B with zero length and a "this is a nest" flag. > We can add attributes to it as we think of things to express. I got a thing working locally, but just to make sure I'm following... you are saying that the attribute will exist (but have nothing in it) when the queue has a pool, and when !q->pool the attribute will not exist? For example: [{'id': 0, 'ifindex': 5, 'napi-id': 8266, 'type': 'rx', 'xsk': {}}, {'id': 1, 'ifindex': 5, 'napi-id': 8267, 'type': 'rx'}, ... Is that what you are thinking? Completely fine with me as I haven't read enough of the xsk code to really have a good sense of what attributes might be helpful to expose at this point.