net: thunderx: Introduce BGX_ID_MASK macro to extract bgx_id
authorRadha Mohan Chintakuntla <rchintakuntla@cavium.com>
Tue, 15 Nov 2016 12:07:16 +0000 (17:37 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 18:28:33 +0000 (13:28 -0500)
commit612e94bd99912f3b2ac616c00c3dc7f166a98005
tree4d5e15bb52b929a71850f1eb617d67a439484e14
parentb71de936c38e80d1f059fd54d8704e9d86d6bd10
net: thunderx: Introduce BGX_ID_MASK macro to extract bgx_id

This patch fixes the 'bgx_id' determination on 83xx where there are
4 BGX blocks instead of 2 on other platforms.

Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
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