]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net: thunderx: Fix link status reporting
authorSunil Goutham <sgoutham@cavium.com>
Mon, 27 Jun 2016 10:00:02 +0000 (15:30 +0530)
committerKamal Mostafa <kamal@canonical.com>
Wed, 13 Jul 2016 15:59:17 +0000 (08:59 -0700)
commitad11d8a1c6cc49a8822ee1bf43b1180df362486c
tree70b130ff98c3d55f5546a39ec65fc67968d9bacf
parentf48acecb30b254f22abc339e75a7ec5ca80bfd53
net: thunderx: Fix link status reporting

BugLink: http://bugs.launchpad.net/bugs/1597867
Check for SMU RX local/remote faults along with SPU LINK
status. Otherwise at times link is UP at our end but DOWN
at link partner's side. Also due to an issue in BGX it's
rarely seen that initialization doesn't happen properly
and SMU RX reports faults with everything fine at SPU.
This patch tries to reinitialize LMAC to fix it.

Also fixed LMAC disable sequence to properly bring down link.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: Tao Wang <tao.wang@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 3f4c68cfde30caa1f6d8368fd19590671411ade2)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h