OSDN Git Service

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)
commit78aacb6f6eeea3c581a29b4a50438d0bdf85ad0b
tree9c700580a0350c445566a9e3a2b8dabe2fddcadc
parent18de7ba95f6e5ab150e482618123d92ee2240dc0
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