Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2558157rdb; Wed, 21 Feb 2024 11:18:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0Nh69LBD0mHYgOEGzwHFdiXnNeluC6GizKLmLAKU4BVv0Hx1YmAHRNoXOIU0gOmxhEZsUwgpqkJgxN3vVXu16pc0CSMflGhUwrfPACw== X-Google-Smtp-Source: AGHT+IE+mtM1xCEQOAxt0tl5mFAnKMEqtaJyRMNdyeZFF7LVg7AC6JlR0URLeqB4JZWuMWGwraVo X-Received: by 2002:a17:906:694b:b0:a3d:590:195e with SMTP id c11-20020a170906694b00b00a3d0590195emr17029239ejs.4.1708543088297; Wed, 21 Feb 2024 11:18:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708543088; cv=pass; d=google.com; s=arc-20160816; b=V0Uf/gnMYsWJiIHH2UuEUbS8UxdGvLj3eormRcesswsuf1xHfOaFks6Hdqrjg5+Gz5 tBNNChJ4WnQcUFaFc2vuqeYRmRUP5sFG+ADbWMNxOzLEAPFbg/w8YCGpCMCt8r6U5lw8 HUjlcjCJ4Brq2W6SVNhujdZCPNOGaKovFKC3vR6sLhUvl+78kbW2by+V4BV6pBH4+fEO sKw6W3+vUaob0eZMp4YNd3aqkbfrq33z+u0s/EAncrS6JYUw0RabqZKfVXM5jBpxISfn jP5mCrWPKuXeelNCDJWG9wxqv2+4Cgsfw+N/xHqTylFVlzEdnMV6UO+6RNByQvMTvLNa Z14Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=xPyGME1+D4Rx5RWLjxT2dahKKgtER+x9+Q9YDDK3GZ8=; fh=evfAJEyQ22YzUUFcFj5lLTeLGAVT+deG9tCf7LBzBGg=; b=eyBc7GpSI39DOufBNTPUt/np6sMGGdKplysmWa7v7v7XZDpG/MXaZB3sc8s2qOMBsP UfYPjP1xVwvMeV8LV7Xe4xVhfkH25YQS0pcVaUqz1pP9hpYyxFhhvXmpef3nMpGE9XXQ vTCWm1WcUAjVtG9HLE+nPKQ3/diY+GqjEKnMQpx6QGHgkvu9EmNRzpraeXGRUdtj6stY px+askNAqbfzzQbgtwYzbO00/TvpChiY5yQhXR+NQRooG9Oqejoi0ZcGQvwVSgYpcYqi GoY9hWdCHSX0gYUlLKcUXKP+/M7dU6ZViYbZ/wceqXXhtnSJ5CNMEggBbchLKw+LKFsu gHJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=ZMOoE3vL; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-75353-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dx23-20020a170906a85700b00a3e98ee43c1si3096331ejb.796.2024.02.21.11.18.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 11:18:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75353-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=ZMOoE3vL; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-75353-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1412F1F2283C for ; Wed, 21 Feb 2024 19:18:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4E9285C6A; Wed, 21 Feb 2024 19:17:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="ZMOoE3vL" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 9600D85955 for ; Wed, 21 Feb 2024 19:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708543078; cv=none; b=sPlNzhny3l6A1+hWQFcaFWejr5+otcaXYdyayer2GWKcouTs8jPpQAwTTlvu9LTiOVKd+gr6eHqyTh2YqYIjDEMEqV2deI9oUqGyPORSOLn1b7059NoTP9VnAEpX1FtEAc7gvOVwO9ZyR87zEUzvhotNQOmicXYQbSbCRYvKKY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708543078; c=relaxed/simple; bh=M0FDvNe5gdx4GV6MSGP6C/r0ckrzasd1+5u7VS+D/BA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DOILaKpg2GCyo1VQRfSDGvy2okn6VITJfXievzCjCil3miJ8wN4f6xxwaGiVvV5KtyQIq1Hk6C68kaTEOIib5UAjnRfSQmWn9fGIDF6Wjj+vhDEIzLd20vpndCd5UfnGEv3UCtwYDl0UtlSvnTf2/FVxJjKoTijuvywsTlZd/YU= 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=ZMOoE3vL; arc=none smtp.client-ip=209.85.214.175 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 Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1dbf1fe91fcso31995025ad.3 for ; Wed, 21 Feb 2024 11:17:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1708543076; x=1709147876; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=xPyGME1+D4Rx5RWLjxT2dahKKgtER+x9+Q9YDDK3GZ8=; b=ZMOoE3vL80Ynwz2ejJBBIbOsOmXSZcJJ7PjQrw2q4tyf8FCHLvgVYqKJjSr+svi30K s6oxbob2r0lxbnWcTKWCcCI+tseFhnxQ6+y3LdjVHNPDbsRMMJ0HqMLLFb/BToWchOdS HqLjXCJ+3LjPj9x4yJDcDODaTCzHUCPTFuKmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708543076; x=1709147876; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xPyGME1+D4Rx5RWLjxT2dahKKgtER+x9+Q9YDDK3GZ8=; b=XBIps+6dsSL90/02lyLqvkjYJfyQoidWiPbbbAegLbvDftYPhdQXpj+d6ycXVz26Ve aPmL0k+zMoQAGyEknArDbfbz236ae4+P7IKLMfy5m2HXEGqbP3YyauvqToQEUyKUb9z7 mcDBlv/OqUkc643Jgb20KDXKiwf2qX9tsEFgJ4QEB/ajD9ujoMO2xdoFBayhrr6gsF6L F5ieiSI01HB9wfJlHL02IVqAhBmGfh/KrSkUqeWWY5Q+OKOnPRuI+RKDsUDoDLxq547H DUrbP6a4eaMaBVtvoi8tpgdd/4cXvlIMZfiqffsBGDMiQj3YThInqzFXrFNgZWLl3FZd kTxA== X-Forwarded-Encrypted: i=1; AJvYcCVzQLpS1OHG93NKQQXbQ4qQZdnxFOmRKV/vyJtklMBI8+oxeknzwN198JxL41fSVZQ3pWEjmICSadJsisg7dOBmJGznr5xs6qw7PeqI X-Gm-Message-State: AOJu0YxdonF9jLF1pX2yhs6X5liB2DFys9Qy+BLFxIfQDtHaPtZV4KkC t/EDqPwW20jx7k7Gj0A8r0tWgJ9nXOQV01G5QtplqK2s/IuBYhGEVkzQgBlyyWw= X-Received: by 2002:a17:903:1ca:b0:1db:aab5:1db5 with SMTP id e10-20020a17090301ca00b001dbaab51db5mr19811932plh.42.1708543076046; Wed, 21 Feb 2024 11:17:56 -0800 (PST) Received: from fastly.com (c-24-6-151-244.hsd1.ca.comcast.net. [24.6.151.244]) by smtp.gmail.com with ESMTPSA id bj11-20020a170902850b00b001dc3916853csm1143816plb.73.2024.02.21.11.17.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2024 11:17:55 -0800 (PST) Date: Wed, 21 Feb 2024 11:17:53 -0800 From: Joe Damato To: Jakub Kicinski Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , Jesper Dangaard Brouer , Stanislav Fomichev , Amritha Nambiar , Larysa Zaremba , Lorenzo Bianconi , Tariq Toukan , Sridhar Samudrala , Alexei Starovoitov , Maciej Fijalkowski Subject: Re: [PATCH net-next 1/2] netdev-genl: Add ifname for queue and NAPI APIs Message-ID: <20240221191752.GA68788@fastly.com> References: <1708531057-67392-1-git-send-email-jdamato@fastly.com> <1708531057-67392-2-git-send-email-jdamato@fastly.com> <20240221111220.4e6b6170@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: <20240221111220.4e6b6170@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) On Wed, Feb 21, 2024 at 11:12:20AM -0800, Jakub Kicinski wrote: > On Wed, 21 Feb 2024 07:57:29 -0800 Joe Damato wrote: > > if (GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_ID) || > > GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_TYPE) || > > - GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_IFINDEX)) > > + GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_IFINDEX) || > > + GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_IFNAME)) > > This means user always has to provide both ifindex and ifname, > right? That's right. I'm OK with omitting this requirement, though. I feel like to your earlier point on name changes, maybe ifindex is enough as far as required params go.