Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp200304lqe; Tue, 9 Apr 2024 21:39:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/khLjUpYSpt5MPXlD9TgLAPLNyzsZ3/UFzfVZkg5zZff0glPVCS/KklkTjzAb2Gd+aa8akpDc1DV7LPsvEwjfD3K5xOtMtNJ+ceLJrQ== X-Google-Smtp-Source: AGHT+IGvlPOEhtwqe7h3f5H/uCnYcBRaSzlKLHh4WQFFPUs11xupP1f/etEVZsigLbieEJgtUXsW X-Received: by 2002:a05:622a:19a3:b0:434:ba37:c573 with SMTP id u35-20020a05622a19a300b00434ba37c573mr2012565qtc.50.1712723998762; Tue, 09 Apr 2024 21:39:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712723998; cv=pass; d=google.com; s=arc-20160816; b=wEIGyNObOsoN5enulZ6AMnDZCG1uyPQnwmVOLTzp+wFZgWrTan5aT84moKNu7cs6i5 hHCErdP4UVooWnscngqmcOKl81B85kBCWfhaMW3NakrerOq7Mwp6ZjSGPoqC9/rLvIf4 tQp9H1Mnm4Pgx0QLgBkekG2p5tqmpZO8k7NJ/H83HJdUbnCUd2mJIHc7DtTqwGI9RPh9 60fJZSmiD4rmLZ4h5fBofl0I3YF47qVjQXzgLyASwi1vZ+cL02cYXfo1fwh4qs41IHSL 903e9e5O59KveuvtJvAi6JiPr6yX0uYy2a5HG2GBhg7NC/JQkfpCLOnXsHolSw2ws4r6 0vcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=FTBKn+X9fYIhUY+SfQqhA1p7Ow+PslkWyXYeQlLznYk=; fh=nWf9KXj04LsVHVrokFnwMGX9RR3P2LhZn9Mz4i/Ogfs=; b=jv0vJo3rg4Bf07QBG2kG9E668+LYLr5JMlgG/IffeZu3NnNUtn7uwwsnTT8cQ5Rvhp wVie9Gmb399WsToB/Qa4G0ppphlJFWyZs4yYLuUzEMvbEX837OzC0Ej8ZWeQcUpr9eJO Hr/CECEAWvc5DYVPFFI7T8su7zKFlj/Npg7lLbR8wkCVd65WHoeqZkYVOV5+1tEdZRxB T0DnkULsXW/RX5Ds21APqR23pEV/ke9Jcd95iWJ6pJq+Rv3Gn1srTPfd1k2a7UqyIgQw Qmj0gaDTdzlg9F/Y5OoJLqOxag2sxbztmWm/w12xEh+ZJFYhVLgNk3QO0wMoDvuVrr/m Bu5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=D25LaJJv; 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-137893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q17-20020a05622a04d100b00432c1c86992si12010050qtx.286.2024.04.09.21.39.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 21:39:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=D25LaJJv; 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-137893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137893-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7D2411C20BF7 for ; Wed, 10 Apr 2024 04:39:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9882D10A09; Wed, 10 Apr 2024 04:39:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="D25LaJJv" Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 5ADE4BA41 for ; Wed, 10 Apr 2024 04:39:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712723985; cv=none; b=Jrsg9MCr208mOMwViwmtguGn5Zf8ZF5Y1Ll97aPwND1ssv9PuG7Mvr9n4xC9wMIWM8nDWb4vUfAdO5U3AhIMLdCg4IQ8mSUU5b6e9VDcSNHVond4fGkqVzGIe+/VFjXga2YTFPwxmyMY7V5TJaa01Q9C+sbSuhRY9nyNPya+ILw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712723985; c=relaxed/simple; bh=DtdulvZeq18gg5nwhugKq6JgQxiYFWo/qLdw+2pmabM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=dcWqUMxsYvA9XFk0pwf3dD+lZCuVFN8Nm5eJeCLjwmygamb0HVQgDj/l/dYG5x2Bw9y3bhdMP17orZd42u/vuza1blUpAea+q1OvUsa/teLA5rkUWO4yu5Cr+5ePPnJjeyqyovuAoPVef2bul5OFh+3B87SntciAD8Owpprm84Q= 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=D25LaJJv; arc=none smtp.client-ip=209.85.216.43 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-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2a484f772e2so3072015a91.3 for ; Tue, 09 Apr 2024 21:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1712723983; x=1713328783; 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=FTBKn+X9fYIhUY+SfQqhA1p7Ow+PslkWyXYeQlLznYk=; b=D25LaJJvAKSXYchN6l1DiUFXFFyJthF2928PYJkQVv4AfGh0hfZ1sc/e2aI7RJUHCy cJpHgWuaWG2pPoG6tlUlkcOByTeZM2dfRBAemtGWqrgsLBcEq8YLxohiAG35RuvVelPU edVqJ+IPaoAGev5jYka87Xgr1vukAITh4pgeg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712723983; x=1713328783; 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=FTBKn+X9fYIhUY+SfQqhA1p7Ow+PslkWyXYeQlLznYk=; b=DrJyY1+GdAp9/bLHZqO6sOgtCn95CVaclGsdMWOvkM+OKtdS6sykjE3+SJXgx0boA5 Es7x2TqMknjIGPvrZn/jVqiLimvHxdASyzHk/4PaYA8TbhadkBC7clccRLNwVtLkxpzw 3q6vU7BCRJG9KXh6dubT900sB6BcS0HZO2r5z5t65Xqluo7Izn/RC2QiGyzzZEKlqY8L mXQrw6EAPJ0hLwnK+S+rkDjkieB4JAD40cI10sOAMyETqyMd4Umt7YOmN2UjIJUN6ClA Dmu9aiqSKcLSxIshLo3qt6ShCyKxEGQ8fsFxGh0m3eNH8OE2yu77x8r8w+LGNEGB6XQl /2Zg== X-Gm-Message-State: AOJu0Yw5RkZAx9tw1Jfp9n2y4KorgoMpn40I8x9DkMTkKlDUHNyo6stF PfyGoC3KkNWR9X0a2hntYPcb+Vk9ZYn9rwrT1i4j3aANKlTOwYGkglIPJApYQ5BnkoMaraz1/mk awHE7zKiXzeAHIoFCfrPnKFgW6fqw7QZyMBskHsqMyWvRKYo1LjyW+vNKohWeJlIiXJ8AaLswZm HXuCJMw3b7yCHq7qZ1pjkvuNeByADfCtoGU00lOTowq4s= X-Received: by 2002:a17:90a:d505:b0:2a5:37cc:cc4e with SMTP id t5-20020a17090ad50500b002a537cccc4emr1550232pju.32.1712723982772; Tue, 09 Apr 2024 21:39:42 -0700 (PDT) Received: from localhost.localdomain ([2620:11a:c019:0:65e:3115:2f58:c5fd]) by smtp.gmail.com with ESMTPSA id gn4-20020a17090ac78400b002a5d71d48e8sm260773pjb.39.2024.04.09.21.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 21:39:42 -0700 (PDT) From: Joe Damato To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org Cc: sridhar.samudrala@intel.com, amritha.nambiar@intel.com, nalramli@fastly.com, Joe Damato , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jesse Brandeburg , Paolo Abeni , Tony Nguyen Subject: [intel-next 0/2] i40e: Add support for netlink API Date: Wed, 10 Apr 2024 04:39:33 +0000 Message-Id: <20240410043936.206169-1-jdamato@fastly.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Greetings: This change adds support for the new netlink APIs to i40e which: - link queues, NAPI IDs, and IRQs together - export per-queue stats This change is inspired by a similar change made to the ice driver commit 91fdbce7e8d6 ("ice: Add support in the driver for associating queue with napi"). I attempted to replicate the rtnl locking added to the ice driver in commit 080b0c8d6d26 ("ice: Fix ASSERT_RTNL() warning during certain scenarios") in patch 1/1, but there's certainly a good chance I missed a case; so I'd kindly ask reviewers to take a close look at, please. Thanks, Joe Joe Damato (2): net/i40e: link NAPI instances to queues and IRQs net/i40e: add support for per queue netlink stats drivers/net/ethernet/intel/i40e/i40e.h | 2 + drivers/net/ethernet/intel/i40e/i40e_main.c | 160 ++++++++++++++++++++ drivers/net/ethernet/intel/i40e/i40e_txrx.c | 4 + 3 files changed, 166 insertions(+) -- 2.25.1