RE: [Intel-wired-lan] [Patch V3 5/9] i40e: Use numa_mem_id() to better support memoryless node

"Patil, Kiran" <[email protected]> Wed, 19 Aug 2015 22:38:09 +0000
Newsgroups gmane.linux.kernel.mm,gmane.linux.network,gmane.linux.hotplug.devel,gmane.linux.kernel
Message-ID <4197C471DCF8714FBA1FE32565271C148FFFF4D3@ORSMSX103.amr.corp.intel.com>
Acked-by: Kiran Patil <[email protected]>

-----Original Message-----
From: Intel-wired-lan [mailto:[email protected]] On =
Behalf Of Jiang Liu
Sent: Sunday, August 16, 2015 8:19 PM
To: Andrew Morton; Mel Gorman; David Rientjes; Mike Galbraith; Peter Zijlst=
ra; Wysocki, Rafael J; Tang Chen; Tejun Heo; Kirsher, Jeffrey T; Brandeburg=
, Jesse; Nelson, Shannon; Wyborny, Carolyn; Skidmore, Donald C; Vick, Matth=
ew; Ronciak, John; Williams, Mitch A
Cc: Luck, Tony; [email protected]; [email protected]; linux-hotplug@vger.=
kernel.org; [email protected]; [email protected]; intel-wired-l=
[email protected]; Jiang Liu
Subject: [Intel-wired-lan] [Patch V3 5/9] i40e: Use numa_mem_id() to better=
 support memoryless node

Function i40e_clean_rx_irq() tries to reuse memory pages allocated from the=
 nearest node. To better support memoryless node, use
numa_mem_id() instead of numa_node_id() to get the nearest node with memory=
.

This change should only affect performance.

Signed-off-by: Jiang Liu <[email protected]>
---
 drivers/net/ethernet/intel/i40e/i40e_txrx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethe=
rnet/intel/i40e/i40e_txrx.c
index 9a4f2bc70cd2..a8f618cb8eb0 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c
@@ -1516,7 +1516,7 @@ static int i40e_clean_rx_irq_ps(struct i40e_ring *rx_=
ring, int budget)
 	unsigned int total_rx_bytes =3D 0, total_rx_packets =3D 0;
 	u16 rx_packet_len, rx_header_len, rx_sph, rx_hbo;
 	u16 cleaned_count =3D I40E_DESC_UNUSED(rx_ring);
-	const int current_node =3D numa_node_id();
+	const int current_node =3D numa_mem_id();
 	struct i40e_vsi *vsi =3D rx_ring->vsi;
 	u16 i =3D rx_ring->next_to_clean;
 	union i40e_rx_desc *rx_desc;
--
1.7.10.4

_______________________________________________
Intel-wired-lan mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/intel-wired-lan

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>