Commit 2dc8b1e
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: 1738cd3 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Shay Agroskin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 602d959 commit 2dc8b1e
1 file changed
+0
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
| |||
325 | 324 | | |
326 | 325 | | |
327 | 326 | | |
328 | | - | |
329 | | - | |
330 | 327 | | |
331 | 328 | | |
332 | 329 | | |
333 | | - | |
334 | 330 | | |
335 | 331 | | |
336 | 332 | | |
| |||
354 | 350 | | |
355 | 351 | | |
356 | 352 | | |
357 | | - | |
358 | | - | |
359 | 353 | | |
360 | | - | |
361 | 354 | | |
362 | 355 | | |
363 | 356 | | |
| |||
397 | 390 | | |
398 | 391 | | |
399 | 392 | | |
400 | | - | |
401 | 393 | | |
402 | 394 | | |
403 | 395 | | |
| |||
409 | 401 | | |
410 | 402 | | |
411 | 403 | | |
412 | | - | |
413 | | - | |
414 | 404 | | |
415 | 405 | | |
416 | | - | |
417 | 406 | | |
418 | 407 | | |
419 | 408 | | |
| |||
0 commit comments