]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Support for different LMAC types within BGX
authorSunil Goutham <sgoutham@cavium.com>
Fri, 12 Aug 2016 11:21:30 +0000 (16:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:59:30 +0000 (11:59 -0700)
commit5366ff07fb2f0ceccfd00e91aaacfc0f43c823ae
treecc81ee65a667280e6a8fa547fe1b82890ecc8149
parent71ce0888608ecaa1af912bdb0371b5445aa46267
net: thunderx: Support for different LMAC types within BGX

On 88xx all LMACs in a BGX will be in same mode but on 81xx
BGX can be split as two and there can be LMACs configured in
different modes.

These changes move lmac_type, lane2serdes fields into per lmac
struct from BGX struct. Got rid of qlm_mode field which has become
redundant with these changes. And now no of valid LMACs is read
from CSRs configured by low level firmware and figuring out the
same based on QLM mode is discarded

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