net: thunderx: Fix set_max_bgx_per_node for 81xx rgx
authorGeorge Cherian <george.cherian@cavium.com>
Thu, 13 Apr 2017 07:25:01 +0000 (07:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 17:03:48 +0000 (13:03 -0400)
commitb47a57a273fc0c1a922fe8b6a139881971e3d8de
tree9a99240b3e001b22e18c7636363700e8ac565184
parent1862d6208db0aeca9c8ace44915b08d5ab2cd667
net: thunderx: Fix set_max_bgx_per_node for 81xx rgx

Add the PCI_SUBSYS_DEVID_81XX_RGX and use the same to set
the max bgx per node count.

This fixes the issue intoduced by following commit
78aacb6f6 net: thunderx: Fix invalid mac addresses for node1 interfaces
With this commit the max_bgx_per_node for 81xx is set as 2 instead of 3
because of which num_vfs is always calculated as zero.

Signed-off-by: George Cherian <george.cherian@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