net: thunderx: Add support for 16 LMACs of 83xx
authorSunil Goutham <sgoutham@cavium.com>
Fri, 12 Aug 2016 11:21:34 +0000 (16:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:59:31 +0000 (11:59 -0700)
commit949b5331419828ff4c028dae556e5983b06b5d18
tree29cdc7e2e3647ed5186123bfbc84411b8cc6ddfd
parent6465859aba1e66a5351b047fbf40e9e9bcb6c669
net: thunderx: Add support for 16 LMACs of 83xx

83xx will have 4 BGX blocks i.e 16 LMACs, to avoid changing
the same with every platform, nicpf struct elements which
track LMAC related info are now allocated runtime based
on platform's max possible BGX count.

Also fixed configuring min packet size for all LMAC's
supported on a platform.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h