net: thunderx: Fix TL4 configuration for secondary Qsets
authorSunil Goutham <sgoutham@cavium.com>
Mon, 27 Jun 2016 10:00:03 +0000 (15:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 09:14:13 +0000 (05:14 -0400)
commit3e29adba567306504e99b8363edf2d47c19dbe1b
tree1c04aee1e7e57b9f5f287f5013c170736f0bb186
parent3f4c68cfde30caa1f6d8368fd19590671411ade2
net: thunderx: Fix TL4 configuration for secondary Qsets

TL4 calculation for a given SQ of secondary Qsets is incorrect
and goes out of bounds and also for some SQ's TL4 chosen will
transmit data via a different BGX interface and not same as
primary Qset's interface.

This patch fixes this issue.

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