From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 58DDC20C486 for ; Wed, 12 Feb 2025 13:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739367031; cv=none; b=ZdEypC6q5KYYoiYT2ohvD+gIFF141otKCfFZomQ+k3ul/soss6ZX+/OoquyQRI3Un/JijFl1L49pZZ+kHrF2C9zFPM6FD1geAByUgdsNyvovbBjsaHBjDeAL1Lsoao2XTHxk6qjBTb1B/AlXqKR/McKKV49tJ9XqI6hzP4M0Kf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739367031; c=relaxed/simple; bh=cppRDKTH5X7+PhdoGd1D1mSrJYsVfO2+TtgwU+r5HiM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dtsgRoP8V0v9pLIb2uJMBN9gUgLjRwkoVSR6pzGBTieBY3HXtKfhx+vOaPRUQ6ovPR0t++ajr4gHK6srxS0lHxT5I51xgs3GxOkYSkcE8RHT02bKzbv/psFpggjm/x0O1IUbPHpxXhaet7KrqLc1FDPkTMfYJ09t5Cr0riw9r2k= 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=bI9eezHu; arc=none smtp.client-ip=209.85.214.172 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="bI9eezHu" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-21f4af4f9ddso80949485ad.1 for ; Wed, 12 Feb 2025 05:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1739367029; x=1739971829; 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=bq7SdSXo+JhFwWwHQa7/twUcE0+PVputBf+G7gcfT+Q=; b=bI9eezHuZ1YRlXLL26JDblxdtNGRFf09dr3q1mu7Lynz47ayzTiLJjJhKXhTy/9k+B 0D4ITt6y8zAWEjZ/FVrGl4QY3nS95UcnG7ba0x7HqugSdeMpRZFhqv9YE4C5N+qjDbQe LoFfdGwBDdNyt6mq/GpTEhAdKGpI+BpwLuogA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739367029; x=1739971829; 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=bq7SdSXo+JhFwWwHQa7/twUcE0+PVputBf+G7gcfT+Q=; b=LbIFbO1I2wwNbdtLO+1G7H7nNTiqAffFv57+MmIlgl/8slvQpXdIACd9AHBZBLYOSe erbYO5wgFblg0B+BCsuuXK6vWl0/qtLLDLKktArwNKi2a3nObrM8vcmRuZIqTqbVWURI Ntw/qmX9C/QXjNnXdL9ifh3Rf87N20JvitZ5yvRZtJf4CziY0FMBELF0r/ER1nHKjEvn AG0JXuITr6x5FOrCMY01h33homD1x93s8K6Q+8oKSVGwGX7R4c+TZrjgk1Jjuc/guiFZ OvAd75m+fEWEraswRjpYgMib7yXyXJH3QBHQPXbAGQ5I3PzGXCV5F48KfUXh/rWMoHex RODg== X-Forwarded-Encrypted: i=1; AJvYcCWNIzxr89kSK3sZJrB+84o61g5gWXgIXuW3eDTQDR6dAeSRNbGL51C/FSIeAYEOL/CxMWr/Vpg/kgKoZ9k=@vger.kernel.org X-Gm-Message-State: AOJu0Yyj5ZCRAYC7KpFaS0AA+sGnamJgAbFT8r11h3UpN33lAZg3kWJk Sv2VuVV3CzGnhUTZUwf3wJFPNTaofJ84LFL3Gf8giaj/cThwKT2SgPCsurTAY7k= X-Gm-Gg: ASbGnctQinMQGxohcxJABt+bXsvTliHRf7zhk3eYtGQoaQH+zo0QNOIROBRL2h2D5FJ fDick2nxUHgKGdeLIZkMpv+EBip0b8L1gtn+GSlw8Ep/FsGorrD4zxuTBRq5zOnPIs0BrVYQbjo 6Vv5HZ5px+KF6qnwpDr4I4jnPisn5xlpxQb1kw2TKVU26khNbHHOUVhpZA0SWXmqSNZEIGy/j7W RIwPy7JQqsiDAUmogyjHa5/OXVjr+5eEtJt5j+W+WKzDPcZFdbFLYhpmoVvjNsFzcwEeP9yaPJM kyzUoc+AVIBOOlgso69Dbvo7KgPmixAo1WZ5t2035CpTZXZNh8zfRlFkSg== X-Google-Smtp-Source: AGHT+IE/UeUsPjMO1gpNMj4yctOpDIpP/4atL2aTr+WokGGBV4mZ/QiJjiwEjLs7hX6m+RhsVtK1Fg== X-Received: by 2002:a17:90a:fc46:b0:2fa:1a23:c01d with SMTP id 98e67ed59e1d1-2fbf5c10491mr4674200a91.21.1739367029580; Wed, 12 Feb 2025 05:30:29 -0800 (PST) Received: from LQ3V64L9R2 (c-24-6-151-244.hsd1.ca.comcast.net. [24.6.151.244]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fbf98b4c52sm1448513a91.4.2025.02.12.05.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2025 05:30:29 -0800 (PST) Date: Wed, 12 Feb 2025 05:30:26 -0800 From: Joe Damato To: Jakub Kicinski Cc: Stanislav Fomichev , Paolo Abeni , netdev@vger.kernel.org, horms@kernel.org, Andrew Lunn , "David S. Miller" , Eric Dumazet , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , open list , "open list:KERNEL SELFTEST FRAMEWORK" , "open list:XDP (eXpress Data Path):Keyword:(?:b|_)xdp(?:b|_)" Subject: Re: [PATCH net-next v6 3/3] selftests: drv-net: Test queue xsk attribute Message-ID: Mail-Followup-To: Joe Damato , Jakub Kicinski , Stanislav Fomichev , Paolo Abeni , netdev@vger.kernel.org, horms@kernel.org, Andrew Lunn , "David S. Miller" , Eric Dumazet , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , open list , "open list:KERNEL SELFTEST FRAMEWORK" , "open list:XDP (eXpress Data Path):Keyword:(?:b|_)xdp(?:b|_)" References: <20250210193903.16235-1-jdamato@fastly.com> <20250210193903.16235-4-jdamato@fastly.com> <13afab27-2066-4912-b8f6-15ee4846e802@redhat.com> <20250211183706.5b53ee5e@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: <20250211183706.5b53ee5e@kernel.org> On Tue, Feb 11, 2025 at 06:37:06PM -0800, Jakub Kicinski wrote: > On Tue, 11 Feb 2025 15:10:52 -0800 Stanislav Fomichev wrote: > > > I can't comment on NIPA because I have no idea how it works. Maybe > > > there is a kernel with some options enabled and other kernels with > > > various options disabled? > > > > Sorry, should've been more clear. My suggestion is to add > > CONFIG_XDP_SOCKETS to tools/testing/selftests/drivers/net/config > > to make your new testcase run in a proper environment with XSKs enabled. > > +1 this we need for sure OK will do. > > > I wonder if that's a separate issue though? > > > > > > In other words: maybe writing the test as I've mentioned above so it > > > works regardless of whether CONFIG_XDP_SOCKETS is set or not is a > > > good idea just on its own? > > > > > > I'm just not sure if there's some other pattern I should be > > > following other than what I proposed above. I'm hesitant to re-spin > > > until I get feedback on the proposed approach. > > > > I'd keep your test as is (fail hard if XSK is not there), but > > let's see if Paolo/Jakub have any other suggestions. > > No strong preference. Stan is right that validating the environment > is definitely a non-goal for the upstream tests. But if you already > added and tested the checks Joe you can keep them, up to you. OK. I guess I'll just leave them? They are as described earlier in the thread.