]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63d452e9046c494295b4d2c7920f5010879fff6c
tree1c04aee1e7e57b9f5f287f5013c170736f0bb186
parentd2b7945ff0958586288bed8b667fee4ef62e33f2
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