From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) (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 DEFD3149C50 for ; Wed, 29 Jan 2025 17:34:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738172060; cv=none; b=L29L5Ehytda5MMY5uJDUuVdS/hYV1In24PavepddRtaoT7fyFGcvfbf7GJ0CrILzmggfAtZBAIgJ0tCuYRRHDIVyWx9y+SyqpEqiAG5MTm6PRPWGx9r2XGTsSIoAX/kQnOIqg3gtK4fKNKOMgiJZlfgFA/7+QNf87EW3kz1dheE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738172060; c=relaxed/simple; bh=zGljS/9FhfUb47+VGIh8ikTRIRMMgOhXhmPgPUZSEIw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HF4mucosrc6EMCkCWLvN7O2MaZo2hKhZUiLSVmkAvwv05yfOaJmsgRNSoZ3gvtAW7D3KQ3sPEjdJUNbcRKjfDfNxdPKvr4UpL8OY/qFUkW2z6+7UdILOB5aor58xZ33unxxn6+MpzW3wLCVeXIaCK51NNttmdvjJ2k79U5tmGbo= 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=kYZqUmTd; arc=none smtp.client-ip=209.85.219.50 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="kYZqUmTd" Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-6dcd4f1aaccso105784166d6.2 for ; Wed, 29 Jan 2025 09:34:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1738172058; x=1738776858; 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=GoQDpS1qfePfDFzhVnadb3EAh/sAqIsSZHWqGtMfdWk=; b=kYZqUmTdziQYxynReb2cOavmQh9Jbl2OPXXLWAvTm018EAB5qFGONw5033h0NrQ6Wj FXzIO/y3Oq4mCBQdTi7sGutH/TecQgxbOpfIMmom7EFgQtNYt8qNgpzNX/0vWXFVHDgt f95BWMSqFtTfLlUo/DxgNQuJc+bUBUo7flIb4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738172058; x=1738776858; 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=GoQDpS1qfePfDFzhVnadb3EAh/sAqIsSZHWqGtMfdWk=; b=wQ2BdwGA+5qXCsVD+X1CH4UsLEAEomrDNqFuiWAYRp7btIhMxiXPg/PoThlklUnBCS A0tOp0DmQFgJ0je0NgzhpLx6CXl/z2AOaPFsgwI6BrC4kJOaC0S5cXuM5/FbFZmBpXuV dYXVy0aimGFDDjtSRFz2U8PGgqgd76LK2o+c79RI0ZhuZP1SbbqYTRKgdRZZunTw/vda A/J0n2Ws8HOSSKM4YhI3mhPRSJ1me3JyhOGr6dpEJHt34zsPAQ2/TSBE89oxe85yHi5J Z5bRuBts2sp48LYHwUoJ/jWYA/fQ/lpkrkk8kpINJXMo2LmBk7UGx1yQSuIdTEyZcZet 3PQg== X-Forwarded-Encrypted: i=1; AJvYcCU7EHdtujuwZIVF5aviNjdzD3I6C8W3meURBXic78TCv8p9plr0BlGGMOqu2ZOBfDU8FRsNp3WvRRp04RU=@vger.kernel.org X-Gm-Message-State: AOJu0YwgjlXxxi4Bb7Il3osWG7nvOKK3axXUpyn8q25OnmaCnDQbjYub YooFUezRxY6R014F2/JXSU28c+a9vPajOZHcNTUBWqieAB8Fv+aYSwmf+kDKGoc= X-Gm-Gg: ASbGnct8H/7hr1cW8euHm1Vdk6X0ICALKOpenPakT8CEDcXdijgq2/wA75EYA4UtOmD UuxB/4ai/ZMsabRbMrMgBGmT91Sou/KsSF3Dwsl6A5Ug7895j/xWFGjRQEoF4xwnvVYyKSfEQ8G qa2U9c0eD569laQZgOZqlyV2ki2Oo9UcX72hU7mJZkvEQf87wwgUXjopTnmrvbrQnMszv5fcHWI ktVBpYrXy1TlhXmvklVbi9+h0lrcl0aAm7b1bqd8JuFfS20Q/qLKW1dQxO7OTrYKRfTU9gRk76D Ei1vPFG0RSqks8xoikibiMJsjUDrd0OwoQrwlDsGNg6vlSXnkJPXCw== X-Google-Smtp-Source: AGHT+IF4BBG8e6/7GOvUoRvTwqooHavsdcNd1DktR9rvgjZFPh+v5/6zznBp3CHsRrcIltj/YWsCgg== X-Received: by 2002:a05:6214:1307:b0:6d4:e0a:230e with SMTP id 6a1803df08f44-6e243bbba57mr62866726d6.16.1738172057768; Wed, 29 Jan 2025 09:34:17 -0800 (PST) Received: from LQ3V64L9R2 (ool-44c5a22e.dyn.optonline.net. [68.197.162.46]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6e20525aabcsm56814206d6.58.2025.01.29.09.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2025 09:34:17 -0800 (PST) Date: Wed, 29 Jan 2025 12:34:15 -0500 From: Joe Damato To: netdev@vger.kernel.org Cc: sridhar.samudrala@intel.com, Alexei Starovoitov , Amritha Nambiar , Andrew Lunn , "open list:XDP (eXpress Data Path):Keyword:(?:b|_)xdp(?:b|_)" , Daniel Borkmann , "David S. Miller" , Donald Hunter , Eric Dumazet , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , open list , "open list:KERNEL SELFTEST FRAMEWORK" , Martin Karsten , Mina Almasry , Paolo Abeni , Shuah Khan , Simon Horman , Stanislav Fomichev , Xuan Zhuo Subject: Re: [RFC net-next 0/2] netdevgenl: Add an xsk attribute to queues Message-ID: Mail-Followup-To: Joe Damato , netdev@vger.kernel.org, sridhar.samudrala@intel.com, Alexei Starovoitov , Amritha Nambiar , Andrew Lunn , "open list:XDP (eXpress Data Path):Keyword:(?:b|_)xdp(?:b|_)" , Daniel Borkmann , "David S. Miller" , Donald Hunter , Eric Dumazet , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , open list , "open list:KERNEL SELFTEST FRAMEWORK" , Martin Karsten , Mina Almasry , Paolo Abeni , Shuah Khan , Simon Horman , Stanislav Fomichev , Xuan Zhuo References: <20250129172431.65773-1-jdamato@fastly.com> 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: <20250129172431.65773-1-jdamato@fastly.com> On Wed, Jan 29, 2025 at 05:24:23PM +0000, Joe Damato wrote: > Greetings: > > This is an attempt to followup on something Jakub asked me about [1], > adding an xsk attribute to queues and more clearly documenting which > queues are linked to NAPIs... > > But: > > 1. I couldn't pick a good "thing" to expose as "xsk", so I chose 0 or 1. > Happy to take suggestions on what might be better to expose for the > xsk queue attribute. > > 2. I create a silly C helper program to create an XDP socket in order to > add a new test to queues.py. I'm not particularly good at python > programming, so there's probably a better way to do this. Notably, > python does not seem to have a socket.AF_XDP, so I needed the C > helper to make a socket and bind it to a queue to perform the test. > > Tested this on my mlx5 machine and the test seems to pass. I should have been slightly more specific, I ran queues.py two ways: 1. By setting NETIF= to my mlx5 NIC 2. By just running queues.py (without NETIF) set (which I presume uses netdevsim) The test passes in both cases.