From patchwork Thu Oct 3 23:38:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Damato X-Patchwork-Id: 13821656 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 1A2711ABEAB for ; Thu, 3 Oct 2024 23:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727998746; cv=none; b=a4o6q4V4Tz6244xy4o0uKLRSSIjJ6CgjIokVExb2DTjuyGYhIUyyRMKa2rDEBAz3zJliG9Ws3iaUtkEe1SB+O1En+nGExF/rkV1f8PW0tjJ6sFoYGj1HdQ6cLJQnc8m4yGx/iVz+yu2LOyUMswjtPZPO+Rr8vLI1Ra1u8Vt9+O0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727998746; c=relaxed/simple; bh=C+PeM70xzurWIN1T6xBQ4odwRcIf2HMMfSOBfc1Q5Ok=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XeU4v/7XciIzNGdghaJUAWB6KNbifaxGZs8tTN6If5twDpxztuonjkiH/OBoPF/tAw/eN48IjAnXOabEaudBt+Dt0IQ8c8TkqfnWAJ41FGI+ymTEh3Xgq8I9cOMLOQiCe2Jx6+WR+1l9UeBn7nipGLuMvd8hhebPxZgAebbrZgs= 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=AwsjBeeh; arc=none smtp.client-ip=209.85.216.41 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="AwsjBeeh" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-2e0af6e5da9so1198170a91.2 for ; Thu, 03 Oct 2024 16:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1727998743; x=1728603543; 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=X5uM8+CsvXiU2bmxtLKhHDD6o30h8WQH0Z1Yw+U9EME=; b=AwsjBeehyZ1ltyJWjJ6ntBE4LWrHicHWsAmKHzCr3AxCzlcwjahWzohP8M8YW7j0Ge /CShp4c63hzHnvczG6zTn9jsSE/zTt529XEtOaHQIy2lE5tSXIgMRQ/0Qyr41d7OwNt2 8WiywDijAHUTl4q8ohNE+t/3SY9+/4zRhqb4E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727998743; x=1728603543; 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=X5uM8+CsvXiU2bmxtLKhHDD6o30h8WQH0Z1Yw+U9EME=; b=aD1hh2nU6xOXn7JB+bIgVFheqeJZandx9tR+ojnmdOWLmGUPpkq8fLGt3R8N02Za0M nJ03Voc4kBxy5R7xkreeWSNx84AK9ev33WncaAMRwP+jlhokih9zOy6KrLFvoAhBqDUt iCW9yq09f+gVIrCo2EN6Oejyb8eiueAFVhS4CfPHOrIV6EAUZB6ueZVU/T7L2jVe/8b0 l/Mopv4XayU7hubXDd0Mmlc/AcXNd0j+DMG5IEiP3GzRXnRo3g2ddB/6Wk2fFEsejeet 9jUDy0v9Sucj4C1nbJKhqFoSb4+cC5QUwrceSH6nYVB6rYboNKGZ5/R9HeZSinI2Ku4O Hu6Q== X-Gm-Message-State: AOJu0Yxoq3enUJ+qSeH8XIo5V2VndY1tpjeLwhsEcdYug6IRni1wgqP3 F7FZcMDrSgYm/qgFDaYngEoGNlqisIqnQh9YYVV6MtAYVsDcKtGTvS1pxWEyOUmNt5/ZdKmEqWq uqWdKazEzAOlBA5SrZEXUZXbvLkV3+bfyIJYOKda63UBANlNHOVRMSM3rOa7BHOysAFHU/JuWQo F1xImUD6gB5Gvf13sNaoLUUZ3XZ29IUGGTgws= X-Google-Smtp-Source: AGHT+IHEWYORPHjnHHVp6I9/kLAbZHfWNaSuzgQt1JIWu8FqZigoY7u1EMlJMMl+mRfWDmx9NcDWEA== X-Received: by 2002:a17:90b:4f87:b0:2d8:8430:8a91 with SMTP id 98e67ed59e1d1-2e1e6221b1dmr1015791a91.10.1727998743501; Thu, 03 Oct 2024 16:39:03 -0700 (PDT) Received: from localhost.localdomain ([2620:11a:c019:0:65e:3115:2f58:c5fd]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20beef8ec6bsm13960705ad.158.2024.10.03.16.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 16:39:03 -0700 (PDT) From: Joe Damato To: netdev@vger.kernel.org Cc: Joe Damato , "David S. Miller" , Eric Dumazet , intel-wired-lan@lists.osuosl.org (moderated list:INTEL ETHERNET DRIVERS), Jakub Kicinski , linux-kernel@vger.kernel.org (open list), Paolo Abeni , Przemek Kitszel , Tony Nguyen Subject: [RFC net-next 0/2] igc: Link IRQs and queues to NAPIs Date: Thu, 3 Oct 2024 23:38:48 +0000 Message-Id: <20241003233850.199495-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 is an RFC to get feedback before submitting an actual series and because I have a question for igc maintainers, see below. This series addss support for netdev-genl to igc so that userland apps can query IRQ, queue, and NAPI instance relationships. This is useful because developers who have igc NICs (for example, in their Intel NUCs) who are working on epoll-based busy polling apps and using SO_INCOMING_NAPI_ID, need access to this API to map NAPI IDs back to queues. See the commit messages of each patch for example output I got on my igc hardware. My question for maintainers: In patch 2, the linking should be avoided for XDP queues. Is there a way to test that somehow in the driver? I looked around a bit, but didn't notice anything. Sorry if I'm missing something obvious. Thanks, Joe Joe Damato (2): igc: Link IRQs to NAPI instances igc: Link queues to NAPI instances drivers/net/ethernet/intel/igc/igc.h | 1 + drivers/net/ethernet/intel/igc/igc_main.c | 33 ++++++++++++++++++++--- 2 files changed, 30 insertions(+), 4 deletions(-)