net: ena: Fix redundant device NUMA node override
authorShay Agroskin <shayagr@amazon.com>
Tue, 28 May 2024 17:09:12 +0000 (20:09 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 May 2024 02:01:34 +0000 (19:01 -0700)
commit2dc8b1e7177d4f49f492ce648440caf2de0c3616
tree8520cf2bc0f4f9c56941d5504d60d52a7eb944b5
parent602d9591a75eeb571dcc076ac4e4cedebfff03c1
net: ena: Fix redundant device NUMA node override

The driver overrides the NUMA node id of the device regardless of
whether it knows its correct value (often setting it to -1 even though
the node id is advertised in 'struct device'). This can lead to
suboptimal configurations.

This patch fixes this behavior and makes the shared memory allocation
functions use the NUMA node id advertised by the underlying device.

Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Link: https://lore.kernel.org/r/20240528170912.1204417-1-shayagr@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amazon/ena/ena_com.c