lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230524111259.1323415-3-bigeasy@linutronix.de>
Date: Wed, 24 May 2023 13:12:59 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: netdev@...r.kernel.org
Cc: Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>,
	Kurt Kanzenbach <kurt.kanzenbach@...utronix.de>,
	Paolo Abeni <pabeni@...hat.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Subject: [RFC PATCH 2/2] intel/igb: Add a hint for threaded NAPI.

This works only with MSIX in this version. The +1 to v_idx is because
the first vector is used for a generic interrupt (igb_msix_other) and
the NAPI interrupts/ vectors follow after that one.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 58872a4c25401..e7e662bf965ab 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -1214,6 +1214,8 @@ static int igb_alloc_q_vector(struct igb_adapter *adapter,
 
 	/* initialize NAPI */
 	netif_napi_add(adapter->netdev, &q_vector->napi, igb_poll);
+	netif_napi_add_hints(&q_vector->napi, q_vector->name,
+			     adapter->msix_entries[v_idx + 1].vector);
 
 	/* tie q_vector and adapter together */
 	adapter->q_vector[v_idx] = q_vector;
-- 
2.40.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ