diff options
author | Radha Mohan Chintakuntla <rchintakuntla@cavium.com> | 2016-11-15 15:07:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-16 21:28:33 +0300 |
commit | 612e94bd99912f3b2ac616c00c3dc7f166a98005 (patch) | |
tree | 4d5e15bb52b929a71850f1eb617d67a439484e14 /drivers/net/ethernet/cavium/thunder/thunder_bgx.h | |
parent | b71de936c38e80d1f059fd54d8704e9d86d6bd10 (diff) | |
download | linux-612e94bd99912f3b2ac616c00c3dc7f166a98005.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/thunder_bgx.h')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/thunder_bgx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.h b/drivers/net/ethernet/cavium/thunder/thunder_bgx.h index d59c71e4a000..01cc7c859131 100644 --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.h +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.h @@ -28,6 +28,8 @@ #define MAX_DMAC_PER_LMAC 8 #define MAX_FRAME_SIZE 9216 +#define BGX_ID_MASK 0x3 + #define MAX_DMAC_PER_LMAC_TNS_BYPASS_MODE 2 /* Registers */ |