]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Fix invalid mac addresses for node1 interfaces
authorSunil Goutham <sgoutham@cavium.com>
Tue, 7 Mar 2017 12:39:10 +0000 (18:09 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 21:12:41 +0000 (13:12 -0800)
commit3ce492a24ff88479f2bfedbfa5360a66d8cf9a0e
tree9c700580a0350c445566a9e3a2b8dabe2fddcadc
parent9f1fdb6fe601fb897cc76f1bf533101fcc707164
net: thunderx: Fix invalid mac addresses for node1 interfaces

When booted with ACPI, random mac addresses are being
assigned to node1 interfaces due to mismatch of bgx_id
in BGX driver and ACPI tables.

This patch fixes this issue by setting maximum BGX devices
per node based on platform/soc instead of a macro. This
change will set the bgx_id appropriately.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h