From patchwork Thu Sep 26 03:00:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Damato X-Patchwork-Id: 13812754 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 453CC175D44 for ; Thu, 26 Sep 2024 03:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727319644; cv=none; b=K8pn9JuGWZFXUW2kjX78X7DCX6a0JecQEwTDiG8BZwpaGFiA52smFf5+9+oekpIGHBNN39yP0PLVsrzWRS/JPChMJmAzoqStM1bWy13xCUIsVZtKol9ic1uKmcKzhYnPEFOb0J/xInEDWaG1SmQ8B16RiLXMh40Oimmw8BULbvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727319644; c=relaxed/simple; bh=a+2A2X56v8avfGnGaZXZZCNMUcWFVcTLZyUxm6YKkio=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Riz561iIKiDwdyV4pcaq9Pnwcg4R8acYe07nDsL8EGP671Vr7979KoS2vvbEPpAkybb8RYQ14h3++kaxe6h/lBGUDJdQKzc/oqSiefxZ/S4g7mEDBUUPjNx44HXnH+BtoerPiSrnRgRbq7H4FdniGit+Ogs/SGAXERJJ6AXG0I0= 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=DIY/71x5; arc=none smtp.client-ip=209.85.215.170 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="DIY/71x5" Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-7e6ba3f93fdso276659a12.1 for ; Wed, 25 Sep 2024 20:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1727319642; x=1727924442; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DQ326iJq7/755KDRIrjwbi7w0izAIGARnlRJDcZSAPk=; b=DIY/71x5yAph88swWhxr1+Xxkd3Y/aecwLy+KwKIUjNySkRNLVheYVyniHPYnPKF4/ Qq4c+LZqMJQf1Fl68ONgK5jS+C2Bs05kF6GFtNl5TNpsvex8UFscMkp0rmYHPvdYRybD A8to4rnTGPWa/lzqq/w2vkJoXbt+XL+QfjNYs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727319642; x=1727924442; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DQ326iJq7/755KDRIrjwbi7w0izAIGARnlRJDcZSAPk=; b=HN+SBCB4I/p2W2LARMJJIR/hVIV3LJuiie2YP2osuuX6hJFPSmya8Owg1q75dW+4KD cz92NRVrmJr/+nG+DhuPhTxHed5G62hDo0GzQQ5UV7PML0Jou24F05aorRK+V+R3y3l6 YjP0WBqLTJxmMy82N2W0GJn025RZPy88vofDP1b38YMIVVGDZcOYPBvnAMgEjEAXJ2Lr DPv8N5DAFZ96tjcCZWELbrf1V0AcFyVg2u5a5ULvDtVI3diSupd1elma3j7bq8QTFSdN CFEmRZzGOzV2XY0HxKa5kzGsBJLw1vkyaTjqhx3r49+pLh1+fO1N0Pw4JsmmMwYAGc/+ xhQg== X-Gm-Message-State: AOJu0YznuE/Gh2Lb4MA5AkfCyQ8Y8HKWER3qhanQXKTKbFg1d0NH+2Y1 UiHtlu4Z7QpcnPkh5kOZNwaFO4DRW3tDCM8Tke+eN5kr4GGdv7A81dQd2QEWrihZW7Bv/sHG3TE lOpKmamsRkAEi0TK5vQKJTXgdzz0QACXfjGNeRQ8AYugcnWz7bKsYpptrTsNrPdjU71P5iPk6CL BzyuzwskmvY84vm2j3yaluL6G1qdh9R3KQwpY= X-Google-Smtp-Source: AGHT+IEl4JZWW76rfK6necgAw5IVoweAhLHc+sCKW0Ogf1bMtEKelsG6Qo1q6hyeazOeixbqu5s/3A== X-Received: by 2002:a05:6a20:cfa5:b0:1cf:3677:1c4a with SMTP id adf61e73a8af0-1d4d4aaf678mr6134983637.16.1727319641715; Wed, 25 Sep 2024 20:00:41 -0700 (PDT) Received: from localhost.localdomain ([2620:11a:c019:0:65e:3115:2f58:c5fd]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71afc97c2a8sm3354111b3a.163.2024.09.25.20.00.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 20:00:41 -0700 (PDT) From: Joe Damato To: netdev@vger.kernel.org Cc: Joe Damato , "David S. Miller" , Eric Dumazet , Harshitha Ramamurthy , Jakub Kicinski , Jeroen de Borst , linux-kernel@vger.kernel.org (open list), Paolo Abeni , Praveen Kaligineedi , Shailend Chand , Simon Horman , Willem de Bruijn , Ziwei Xiao Subject: [RFC net-next 0/2] gve: Link IRQs, queues, and NAPI instances Date: Thu, 26 Sep 2024 03:00:20 +0000 Message-Id: <20240926030025.226221-1-jdamato@fastly.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Greetings: This RFC uses the netdev-genl API to link IRQs and queues to NAPI IDs so that this information is queryable by user apps. This is particularly useful for epoll-based busy polling apps which rely on having access to the NAPI ID. I've tested these commits on a GCP instance with a GVE NIC configured and have included test output in the commit messages for each patch showing how to query the information. I hope to send this next week when net-next reopens as an official submission, but wanted to send an RFC now in case there were any changes requested from the GVE maintainers. Thanks, Joe Joe Damato (2): gve: Map IRQs to NAPI instances gve: Map NAPI instances to queues drivers/net/ethernet/google/gve/gve_main.c | 12 ++++++++++++ drivers/net/ethernet/google/gve/gve_utils.c | 1 + 2 files changed, 13 insertions(+)